mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-10 09:13:59 +02:00
Fix typo in ReactEditor docs
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# ReactEditor
|
# ReactEditor
|
||||||
|
|
||||||
`ReactEditor` is added to `Editor` when it is instntiated using the `withReact` method.
|
`ReactEditor` is added to `Editor` when it is instantiated using the `withReact` method.
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
const [editor] = useState(() => withReact(withHistory(createEditor())))
|
const [editor] = useState(() => withReact(withHistory(createEditor())))
|
||||||
|
Reference in New Issue
Block a user