1
0
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:
Ian Storm Taylor 2016-07-18 12:56:20 -07:00
parent 9e3d628ef5
commit 730b731b84

View File

@ -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'))
}
}