class { onInput() { this.state = { count:0 }; } increment() { this.state.count++; } }
The current count is ${state.count}