1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-01 13:00:16 +02:00

An unused state was deleted. (#3413)

This commit is contained in:
Aykut Kardaş
2020-01-27 23:22:54 +03:00
committed by Ian Storm Taylor
parent 612dbcb3a6
commit f813af790e

View File

@@ -179,7 +179,6 @@ But we forgot one thing. When you hit `` Ctrl-` `` again, it should change the c
```js ```js
const App = () => { const App = () => {
const editor = useMemo(() => withReact(createEditor()), []) const editor = useMemo(() => withReact(createEditor()), [])
const [selection, setSelection] = useState(null)
const [value, setValue] = useState([ const [value, setValue] = useState([
{ {
type: 'paragraph', type: 'paragraph',