2017-02-20 16:04:50 -07:00

16 lines
284 B
Plaintext

class {
onInput() {
if (!this.state) {
this.state = {
count: 0
};
}
}
increment() {
this.state.count++;
}
}
<div style={ color:input.color }>
Current count is <span.count>${state.count}</span>
</div>