update code to match with doc instruction (#60)

This commit is contained in:
Haishi2016 2019-10-15 19:46:06 -07:00 committed by Young Bu Park
parent 9af3a937a1
commit eee30d8a68
1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ export default class App extends React.Component {
const savedState = await this.getState();
if (savedState) {
console.log("Rehydrating State:");
console.log(savedState);
console.log(JSON.stringify(savedState));
this.setState(savedState);
}
}
@ -28,7 +28,7 @@ export default class App extends React.Component {
persistState = (value) => {
console.log(`Persisting State:`);
console.log(value);
console.log(JSON.stringify(value));
const state = [{
key: "calculatorState",