diff --git a/docs/walkthroughs/05-executing-commands.md b/docs/walkthroughs/05-executing-commands.md index 7110fb03e..59c258cb3 100644 --- a/docs/walkthroughs/05-executing-commands.md +++ b/docs/walkthroughs/05-executing-commands.md @@ -250,7 +250,6 @@ Now our commands are clearly defined and you can invoke them from anywhere we ha ```js const App = () => { - const [value, setValue] = useState(initialValue) const editor = useMemo(() => withCustom(withReact(createEditor())), []) const renderElement = useCallback(props => { switch (props.element.type) { @@ -292,10 +291,8 @@ const App = () => { setValue(newValue)} onKeyDown={event => { if (!event.ctrlKey) { return