Skip to content

Instantly share code, notes, and snippets.

@serebano
Last active November 19, 2016 18:06
Show Gist options
  • Select an option

  • Save serebano/9881a0c8307ec9ba948f143ed1fd7560 to your computer and use it in GitHub Desktop.

Select an option

Save serebano/9881a0c8307ec9ba948f143ed1fd7560 to your computer and use it in GitHub Desktop.
var data = {
count: 0
}
function onClick() {
data.count++
render()
}
function render() {
<bitbox>
<div>
<h1>data.count</h1>
<button on-click text>Increment</button>
</div>
</bitbox>
}
render()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment