3 ms·
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 rea
by johnfn 8y ago
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.
- hombre_fatal 8y agoReact'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.html#autobinding https://reactjs.org/blog/2015/01/27/react-v0.13.0-beta-1.htm...