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