4 ms·
When React introduced hooks they also massively expanded the library's API, so there's a complexity cost to that. While I love working with hooks and do so dai
by sibeliuss 5y ago
When React introduced hooks they also massively expanded the library's API, so there's a complexity cost to that.
While I love working with hooks and do so daily, I definitely felt some remorse for those now having to figure out when and how to use memoization, dependency arrays, useCallback, etc, etc etc. React in its first formulation was utterly simple and beautiful.
In defense of hooks however, it's good to keep in mind that now you can do a lot more than you could, and being able to share business logic so easily across an application is an elegant abstraction.