Jul 10, 2022
And the real takeaway from this is that if a component uses several custom hooks, and contains children with custom hooks (especially if your hooks have hooks in them), there is essentially no way of even getting an order of magnitude idea of how many renders you're firing off or what the impact of a "simple" code change will be. https://medium.com/codex/can-we-all-just-admit-react-hooks-were-a-bad-idea-c48120c5188d