2 ms·
Oh hi there, yet another awkward not-really-html-not-really-js templating language class { onCreate() { this.state = {
by dmitriid 9y ago
Oh hi there, yet another awkward not-really-html-not-really-js templating language
class {
onCreate() {
this.state = {
count:0
};
}
increment() {
this.state.count++;
}
}
<div>The current count is ${state.count}</div>
<button on-click('increment')>Click me!</button>
- atom-morgan 9y agoGiven how little boilerplate there is for the actual code, I'll take the templating language.