1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-04-21 13:51:59 +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,18 +56,20 @@ 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([
{
kind: 'block',
type: 'paragraph',
nodes: [
{
kind: 'text',
text: 'A line of text in a paragraph.'
}
]
}
])
const initialState = Raw.deserialize({
nodes: [
{
kind: 'block',
type: 'paragraph',
nodes: [
{
kind: 'text',
text: 'A line of text in a paragraph.'
}
]
}
]
})
// Define our app...
class App extends React.Component {