react-hello
react-hello copied to clipboard
Migrate away from using `this` - quick fix WIP (NOT TESTED)
Wanted to make the code even more pure.
Input ref updated as described in: https://gist.github.com/gaearon/1a018a023347fe1c2476073330cc5509 (linked from https://reactjs.org/docs/refs-and-the-dom.html)
TODO:
- needs testing
- change
let self
toconst self
and doreturn self
at the end of the function