mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-04-21 13:51:59 +02:00
update saving to a database guide
This commit is contained in:
parent
9e3d628ef5
commit
730b731b84
@ -88,6 +88,7 @@ class App extends React.Component {
|
||||
constructor(props) {
|
||||
super(props)
|
||||
this.state = {
|
||||
// Update the initial value to be pulled from Local Storage.
|
||||
state: Plain.deserialize(localStorage.getItem('content'))
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user