mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-26 16:44:22 +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
|
||||
const App = () => {
|
||||
// Create a Slate editor object that won't change across renders.
|
||||
const editor = useState(() => withReact(createEditor()))
|
||||
const [editor] = useState(() => withReact(createEditor()))
|
||||
return null
|
||||
}
|
||||
```
|
||||
|
Reference in New Issue
Block a user