I ♥️ Hooks
I ♥️ Hooks. But each useEffect should clearly convey intent.
Simple solution:
1. Nest a well-named function
2. Call it
Otherwise useEffect merely says *when* code should run, not why.
With a named function inside, everyone can easily understand the goal.
#reactjs

Or, even simpler:
If you're not using async/await, use a named function declaration instead of an arrow function.
