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