Created
April 24, 2017 10:53
-
-
Save santosoide/1f6db957ce4db0c8d0e118a42df233bf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class { | |
onCreate() { | |
this.state = { count:0 }; | |
} | |
increment() { | |
this.state.count++; | |
} | |
} | |
style { | |
.count { | |
color:#09c; | |
font-size:3em; | |
} | |
.example-button { | |
font-size:1em; | |
padding:0.5em; | |
} | |
} | |
<div.count> | |
${state.count} | |
</div> | |
<button.example-button on-click('increment')> | |
Click me! | |
</button> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment