mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-27 09:04:31 +02:00
Added missing brackets to resolve inconsistancy (#5097)
This commit is contained in:
@@ -40,7 +40,7 @@ The next step is to create a new `Editor` object. We want the editor to be stabl
|
|||||||
```jsx
|
```jsx
|
||||||
const App = () => {
|
const App = () => {
|
||||||
// Create a Slate editor object that won't change across renders.
|
// Create a Slate editor object that won't change across renders.
|
||||||
const editor = useState(() => withReact(createEditor()))
|
const [editor] = useState(() => withReact(createEditor()))
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user