5 ms·
Hooks never grew on me. I pretty much stopped paying attention to new versions after React 14. KISS - keep it stupid simple. I suspect that some Devs new to
by reactspa 5y ago
Hooks never grew on me.
I pretty much stopped paying attention to new versions after React 14.
KISS - keep it stupid simple.
I suspect that some Devs new to JS didn't like the various definitions of "this", and Hooks was supposed to help them out.
- azangru 5y ago> I suspect that some Devs new to JS didn't like the various definitions of "this", and Hooks was supposed to help them out. No, stale closures caused by hooks are more confusing than what "this" has ever been, especially since this-related problems are mitigated with fat arrows and class property assignment. No, as far as I understand, the driving force behind the hooks was the vision of the coming concurrent mode, for which class components posed some difficult problems somehow.