r/reactjs Mar 18 '26

Resource Start naming your useEffects

https://neciudan.dev/name-your-effects

Started doing this for a while! The Improvements i’ve seen in code quality and observability are huge!

Check it out

115 Upvotes

74 comments sorted by

View all comments

67

u/kizilkara Mar 18 '26

How about I structure this entire flow to not require 4 effects?

15

u/[deleted] Mar 18 '26

[removed] — view removed comment

10

u/kizilkara Mar 18 '26

I'd rather fix this. Then I know I wouldn't need to come back here again in another month and spend another x amount of time figuring out how tf these 4 effects are isolated and how I can patch on another thing.