Join us for React Conf on Oct 7-8.
Learn more.
React
v19.1
Search
⌘
Ctrl
K
Learn
Reference
Community
Blog
On this page
Overview
Dependencies should match the code
To remove a dependency, prove that it’s not a dependency
To change the dependencies, change the code
Removing unnecessary dependencies
Should this code move to an event handler?
Is your Effect doing several unrelated things?
Are you reading some state to calculate the next state?
Do you want to read a value without “reacting” to its changes?
Does some reactive value change unintentionally?
Recap
Challenges