dillon1000/react

Commit

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.
Browse files
Changed paths1 file
First-parent comparison
M docs/docs/react-without-es6.md Modified
Patch

Files changed

Rendering syntax-highlighted changes…