From c3c3670c8bfecc8312ef7aa422248136f7561947 Mon Sep 17 00:00:00 2001 From: Sunny Hirai Date: Thu, 8 Jul 2021 22:51:10 -0700 Subject: [PATCH] docs: Fix installing slate to pass prettier --- docs/walkthroughs/01-installing-slate.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 ( + + ... + + ) } ```