Re:I love React Hooks
by johnfn on Wednesday February 20, 2019 @01:11AM
(#19205972)
This seems pretty disingenuous to me. React didn’t create the problem of class methods not binding this correctly. That’s purely a javascript problem, which react now provides a way to solve.
[ Parent
| on HN ]
Re:I love React Hooks
by hombre_fatal on Wednesday February 20, 2019 @01:23AM
(#19206024)
React's original createClass() even tried to solve that problem with autobound methods but they decided it wasn't worth it: https://reactjs.org/blog/2015/01/27/react-v0.13.0-beta-1.htm...