diff --git a/docs/walkthroughs/01-installing-slate.md b/docs/walkthroughs/01-installing-slate.md index 2c8c98438..02624d665 100644 --- a/docs/walkthroughs/01-installing-slate.md +++ b/docs/walkthroughs/01-installing-slate.md @@ -65,12 +65,17 @@ declare module 'slate' { } } ``` + ```typescript jsx // Also you must annotate `useState` and the editor's initial value. const App = () => { - const initialValue : CustomElement = []; + const initialValue: CustomElement = [] const [value, setValue] = useState(initialValue) - return ... + return ( + + ... + + ) } ```