diff --git a/docs/concepts/12-typescript.md b/docs/concepts/12-typescript.md index 41cf9cd60..1b22e2c0a 100644 --- a/docs/concepts/12-typescript.md +++ b/docs/concepts/12-typescript.md @@ -37,7 +37,7 @@ declare module 'slate' { Annotate `useState` w/ `` 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'