4 ms·
In my experience people abuse react components by making them too big with too much functionality. If you have a bunch of hooks tied together in a brittle way,
by gregkerzhner 6y ago
In my experience people abuse react components by making them too big with too much functionality. If you have a bunch of hooks tied together in a brittle way, thats not the hooks's fault. It's a good sign that you need to refactor your component into smaller sub components or move functionality out of components all together into redux or some other non UI related code. A big component with lots of logic will always be a liability whether it's hooks or classes because it will mix presentation with business logic and will rarely be well tested.