mirror of https://github.com/dapr/quickstarts.git
update code to match with doc instruction (#60)
This commit is contained in:
parent
9af3a937a1
commit
eee30d8a68
|
|
@ -15,7 +15,7 @@ export default class App extends React.Component {
|
||||||
const savedState = await this.getState();
|
const savedState = await this.getState();
|
||||||
if (savedState) {
|
if (savedState) {
|
||||||
console.log("Rehydrating State:");
|
console.log("Rehydrating State:");
|
||||||
console.log(savedState);
|
console.log(JSON.stringify(savedState));
|
||||||
this.setState(savedState);
|
this.setState(savedState);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -28,7 +28,7 @@ export default class App extends React.Component {
|
||||||
|
|
||||||
persistState = (value) => {
|
persistState = (value) => {
|
||||||
console.log(`Persisting State:`);
|
console.log(`Persisting State:`);
|
||||||
console.log(value);
|
console.log(JSON.stringify(value));
|
||||||
|
|
||||||
const state = [{
|
const state = [{
|
||||||
key: "calculatorState",
|
key: "calculatorState",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue