mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-12 18:24:03 +02:00
@@ -70,7 +70,7 @@ const App = () => {
|
||||
const [value, setValue] = useState([])
|
||||
// Render the Slate context.
|
||||
return (
|
||||
<Slate editor={editor} value={value} onChange={value => setValue(value)} />
|
||||
<Slate editor={editor} value={value} onChange={newValue => setValue(newValue)} />
|
||||
)
|
||||
}
|
||||
```
|
||||
@@ -89,7 +89,7 @@ const App = () => {
|
||||
const [value, setValue] = useState([])
|
||||
return (
|
||||
// Add the editable component inside the context.
|
||||
<Slate editor={editor} value={value} onChange={value => setValue(value)}>
|
||||
<Slate editor={editor} value={value} onChange={newValue => setValue(newValue)}>
|
||||
<Editable />
|
||||
</Slate>
|
||||
)
|
||||
@@ -114,7 +114,7 @@ const App = () => {
|
||||
])
|
||||
|
||||
return (
|
||||
<Slate editor={editor} value={value} onChange={value => setValue(value)}>
|
||||
<Slate editor={editor} value={value} onChange={newValue => setValue(newValue)}>
|
||||
<Editable />
|
||||
</Slate>
|
||||
)
|
||||
|
Reference in New Issue
Block a user