1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-02-17 21:54:39 +01:00

Fix display bug in GitBook ()

It appears that GitBook doesn't support ```typescript jsx. See https://docs.slatejs.org/walkthroughs/01-installing-slate
This commit is contained in:
ilovecommits 2021-08-05 06:53:37 +02:00 committed by GitHub
parent fed9354764
commit f3b316e816
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -66,7 +66,7 @@ declare module 'slate' {
}
```
```typescript jsx
```typescript
// Also you must annotate `useState<Descendant[]>` and the editor's initial value.
const App = () => {
const initialValue: CustomElement = []