{
+ const [value, setValue] = useState(initialValue)
+ const [selection, setSelection] = useState(null)
const renderElement = useCallback(props => , [])
const renderLeaf = useCallback(props => , [])
const editor = useMemo(
@@ -11,7 +13,15 @@ const TablesExample = () => {
[]
)
return (
-
+ {
+ setValue(value)
+ setSelection(selection)
+ }}
+ >
)
diff --git a/yarn.lock b/yarn.lock
index fd57a9865d..d657c15e07 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -2551,6 +2551,21 @@
resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.3.tgz#2ab0d5da2e5815f94b0b9d4b95d1e5f243ab2ca7"
integrity sha512-KfRL3PuHmqQLOG+2tGpRO26Ctg+Cq1E01D2DMriKEATHgWLfeNDmq9e29Q9WIky0dQ3NPkd1mzYH8Lm936Z9qw==
+"@types/react-dom@^16.9.4":
+ version "16.9.4"
+ resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-16.9.4.tgz#0b58df09a60961dcb77f62d4f1832427513420df"
+ integrity sha512-fya9xteU/n90tda0s+FtN5Ym4tbgxpq/hb/Af24dvs6uYnYn+fspaxw5USlw0R8apDNwxsqumdRoCoKitckQqw==
+ dependencies:
+ "@types/react" "*"
+
+"@types/react@*":
+ version "16.9.14"
+ resolved "https://registry.yarnpkg.com/@types/react/-/react-16.9.14.tgz#7f1158ce450b4b5aa83b1c5e1324fa75f348bdd1"
+ integrity sha512-Q4tW4RGmR+u/CgzR8VqZcsUWjP4Pz/LcHfs9AzSG+aBnwq8As3Bid3vG1eGGsXg/xuR2k2tqNlI8pzyV8kxe0g==
+ dependencies:
+ "@types/prop-types" "*"
+ csstype "^2.2.0"
+
"@types/react@^16.9.13":
version "16.9.13"
resolved "https://registry.yarnpkg.com/@types/react/-/react-16.9.13.tgz#b3ea5dd443f4a680599e2abba8cc66f5e1ce0059"