van-hmr/app.js

6 lines
119 B
JavaScript
Raw Normal View History

2025-02-06 14:32:07 -05:00
const state = van.state(7);
van.add(document.body, van.tags.div({onclick()
{
state.val++;
}
}, state));