Re:React: You Might Not Need an Effect
by sickcodebruh on Thursday March 23, 2023 @08:29AM
(#35273658)
That last bit seems like a recommendation that should be in the docs. It’s sensible from a “don’t leave boobytraps” perspective but it won’t be intuitive to many people. It’s one more little rule to learn, another comment on a sizable chunk of PRs. While it may be idiomatic and sensible JSX, it seems like an outlier for React, and I wonder if there’s an opportunity to improve the developer experience of this very common use case.
[ Parent
| on HN ]
There are no comments on this comment yet.