1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-17 12:41:44 +02:00

Fix error in Hello World of installation guide (#170)

This commit is contained in:
adamlong5
2016-07-24 20:14:42 -04:00
committed by Ian Storm Taylor
parent 12f4a8e692
commit 58691691a9

View File

@@ -56,7 +56,8 @@ And now that we've our initial state, we define our `App` and pass it into Slate
import React from 'react'
import { Editor, Raw } from 'slate'
const initialState = Raw.deserialize([
const initialState = Raw.deserialize({
nodes: [
{
kind: 'block',
type: 'paragraph',
@@ -67,7 +68,8 @@ const initialState = Raw.deserialize([
}
]
}
])
]
})
// Define our app...
class App extends React.Component {