1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-30 10:29:48 +02:00

Fix typo in TypeScript concepts documentation (#4468)

Fixed #4467
This commit is contained in:
Dylan Schiemann
2021-08-24 21:40:00 -07:00
committed by GitHub
parent 48b7129447
commit 5f6d7b4770

View File

@@ -37,7 +37,7 @@ declare module 'slate' {
Annotate `useState` w/ `<Descendant[]>` and the editor's initial value w/ your custom Element type.
```typescript jsx
```tsx
import React, { useMemo, useState } from 'react'
import { createEditor, Descendant } from 'slate'
import { Slate, Editable, withReact } from 'slate-react'