mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-17 04:34:00 +02:00
Fix error in Hello World of installation guide (#170)
This commit is contained in:
committed by
Ian Storm Taylor
parent
12f4a8e692
commit
58691691a9
@@ -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 React from 'react'
|
||||||
import { Editor, Raw } from 'slate'
|
import { Editor, Raw } from 'slate'
|
||||||
|
|
||||||
const initialState = Raw.deserialize([
|
const initialState = Raw.deserialize({
|
||||||
|
nodes: [
|
||||||
{
|
{
|
||||||
kind: 'block',
|
kind: 'block',
|
||||||
type: 'paragraph',
|
type: 'paragraph',
|
||||||
@@ -67,7 +68,8 @@ const initialState = Raw.deserialize([
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
])
|
]
|
||||||
|
})
|
||||||
|
|
||||||
// Define our app...
|
// Define our app...
|
||||||
class App extends React.Component {
|
class App extends React.Component {
|
||||||
|
Reference in New Issue
Block a user