class { onCreate() { this.state = { count:0 }; } increment() { this.state.count++; } } -- Hello World ${state.count}