Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Typo]: Separating Events from Effects #6706

Closed
ruthcyg opened this issue Mar 24, 2024 · 2 comments
Closed

[Typo]: Separating Events from Effects #6706

ruthcyg opened this issue Mar 24, 2024 · 2 comments

Comments

@ruthcyg
Copy link

ruthcyg commented Mar 24, 2024

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

@eps1lon
Copy link
Collaborator

eps1lon commented Mar 24, 2024

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

@ruthcyg
Copy link
Author

ruthcyg commented Mar 24, 2024

Event handlers only re-run when you perform the same interaction again. Unlike event handlers,

@ruthcyg ruthcyg closed this as completed Mar 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants