You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unlike event handlers, Effects re-synchronize if some value they read, like a prop or a state variable, is different from what it was during the last render.
I don't see how the comparison was not made between Effects and event handlers
Summary
Event handlers only re-run when you perform the same interaction again. Unlike event handlers,
Page
https://react.dev/learn/separating-events-from-effects
Details
In the first paragraph The comparison was between event handlers and event handlers instead of effects
The text was updated successfully, but these errors were encountered: