Browse Source
- In the previous example, the code works even without using bind(this) in the constructor. - the reason being handleClick doesn't even use `this` and its just calling the global function alert. - this change make use of this via access this.state.main
Chris
8 years ago
committed by
Brandon Dail
1 changed files with 12 additions and 3 deletions
Loading…
Reference in new issue