Skip to content

Commit bf0205f

Browse files
committed
Example: Add counter to dom
1 parent 2372afd commit bf0205f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

example/app.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const state = hotStore.state || {
1010
// change state
1111
state.counter += 1;
1212
console.log('state.counter: ', state.counter);
13+
document.body.innerHTML = state.counter;
1314

1415
// store state
1516
hotStore.state = state;

0 commit comments

Comments
 (0)