News for hackers. Stuff that matters.
Re:The Useless UseCallback by joelg on Monday July 28, 2025 @09:55PM (#44718105)
yeah I completely agree, I think there's a whole logic of reasons to using useEffect/useCallback/useMemo that the post didn't acknowledge.

personally, I want to have a comprehensive understanding of exactly when and why each of my components re-renders, and to do that I use hooks and design around referential equality. like you said, it's a kind of documentation, more about organization than performance.

not to say that this way is intrinsically better! just that the style is appealing for its own reasons

There are no comments on this comment yet.