3 ms·
apply/bind/call aren't really abstracted away at all in react. In older versions they did do the binding magically for you, but when they made the switch to es6
by Jcampuzano2 5y ago
apply/bind/call aren't really abstracted away at all in react. In older versions they did do the binding magically for you, but when they made the switch to es6 classes they stopped doing that in favor of writing JS more like vanilla JS with less magic, outside of JSX of course.
Now with hooks/function components being the most common way of writing apps, there's almost no need for binding or dealing with "this" at all.