1
0
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:
Samy Rahmani
2022-08-22 20:15:40 -04:00
committed by GitHub
parent a10cb2564a
commit 56ab505485

View File

@@ -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
}
```