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:
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 { 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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user