dillon1000/react
Commit
Browse files update example to use `this.state` (#8425)
- 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.
Changed paths1 file
First-parent comparisondocs/docs/react-without-es6.md ModifiedPatch
Files changed
Rendering syntax-highlighted changes…