mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-16 12:14:14 +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,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 React from 'react'
|
||||||
import { Editor, Raw } from 'slate'
|
import { Editor, Raw } from 'slate'
|
||||||
|
|
||||||
const initialState = Raw.deserialize([
|
const initialState = Raw.deserialize({
|
||||||
{
|
nodes: [
|
||||||
kind: 'block',
|
{
|
||||||
type: 'paragraph',
|
kind: 'block',
|
||||||
nodes: [
|
type: 'paragraph',
|
||||||
{
|
nodes: [
|
||||||
kind: 'text',
|
{
|
||||||
text: 'A line of text in a paragraph.'
|
kind: 'text',
|
||||||
}
|
text: 'A line of text in a paragraph.'
|
||||||
]
|
}
|
||||||
}
|
]
|
||||||
])
|
}
|
||||||
|
]
|
||||||
|
})
|
||||||
|
|
||||||
// Define our app...
|
// Define our app...
|
||||||
class App extends React.Component {
|
class App extends React.Component {
|
||||||
|
Reference in New Issue
Block a user