From 56ab505485f94f2aa3bdf34e121bd080bf6cc248 Mon Sep 17 00:00:00 2001 From: Samy Rahmani <99157490+osmium-dev@users.noreply.github.com> Date: Mon, 22 Aug 2022 20:15:40 -0400 Subject: [PATCH] Added missing brackets to resolve inconsistancy (#5097) --- docs/walkthroughs/01-installing-slate.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/walkthroughs/01-installing-slate.md b/docs/walkthroughs/01-installing-slate.md index 46aa9629b..721f4924c 100644 --- a/docs/walkthroughs/01-installing-slate.md +++ b/docs/walkthroughs/01-installing-slate.md @@ -40,7 +40,7 @@ The next step is to create a new `Editor` object. We want the editor to be stabl ```jsx const App = () => { // Create a Slate editor object that won't change across renders. - const editor = useState(() => withReact(createEditor())) + const [editor] = useState(() => withReact(createEditor())) return null } ```