News for hackers. Stuff that matters.
Re:A Visual Guide to UseEffect by draw_down on Monday December 26, 2022 @07:55PM (#34143672)
Agreed, but when you have this many “don’t do what Donny Don’t does”, that may be a smell. I use React a lot and like it, but I do feel that way sometimes. I like that these docs are at least prescriptive and tell you what you should do instead.
Re:A Visual Guide to UseEffect by satvikpendem on Monday December 26, 2022 @08:01PM (#34143718)
Interesting, most of your comments are dead, I just vouched for this one.

Anyway, yeah it might be a code smell if everyone is using them wrong, but I'm not sure how the React team could fix it, at least without breaking changes or moving to some other paradigm.

Re:A Visual Guide to UseEffect by dragonwriter on Monday December 26, 2022 @11:24PM (#34145091)
> Anyway, yeah it might be a code smell if everyone is using them wrong

At least part of the “wrong” use is the recommended best practice has evolved over time, so following the recent recommendations would be “wrong” by the current recommendation.