this post was submitted on 26 Mar 2026
12 points (92.9% liked)

React

1324 readers
1 users here now

A community for discussing anything related to the React UI framework and it's ecosystem.

https://react.dev/

Wormhole

!pico8@programming.dev

Icon base by Skoll under CC BY 3.0 with modifications to add a gradient

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] BlackEco@lemmy.blackeco.com 1 points 2 weeks ago* (last edited 2 weeks ago)

The author actually addresses this point, explaining that since you name your effects, you should realise when they are used to sync states and take action.

As a side-note, eslint-plugin-react-you-might-not-need-an-effect might be better suited to catch these.