mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-02-20 07:04:39 +01:00
Fix display bug in GitBook (#4402)
It appears that GitBook doesn't support ```typescript jsx. See https://docs.slatejs.org/walkthroughs/01-installing-slate
This commit is contained in:
parent
fed9354764
commit
f3b316e816
@ -66,7 +66,7 @@ declare module 'slate' {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
```typescript jsx
|
```typescript
|
||||||
// Also you must annotate `useState<Descendant[]>` and the editor's initial value.
|
// Also you must annotate `useState<Descendant[]>` and the editor's initial value.
|
||||||
const App = () => {
|
const App = () => {
|
||||||
const initialValue: CustomElement = []
|
const initialValue: CustomElement = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user