mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-30 18:39:51 +02:00
@@ -37,7 +37,7 @@ declare module 'slate' {
|
|||||||
|
|
||||||
Annotate `useState` w/ `<Descendant[]>` and the editor's initial value w/ your custom Element type.
|
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 React, { useMemo, useState } from 'react'
|
||||||
import { createEditor, Descendant } from 'slate'
|
import { createEditor, Descendant } from 'slate'
|
||||||
import { Slate, Editable, withReact } from 'slate-react'
|
import { Slate, Editable, withReact } from 'slate-react'
|
||||||
|
Reference in New Issue
Block a user