Skip to content

Instantly share code, notes, and snippets.

@gabrieljoelc
Created August 4, 2021 16:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabrieljoelc/e967340669963ec65b7e46ff258459c8 to your computer and use it in GitHub Desktop.
Save gabrieljoelc/e967340669963ec65b7e46ff258459c8 to your computer and use it in GitHub Desktop.
"A Complete Guide to useEffect" notes

These notes are based the excellent A Complete Guid to useEffect.

Quote:

Does count somehow “watch” changes to our state and update automatically? That might be a useful first intuition when you learn React but it’s not an accurate mental model.

In this example, count is just a number. It’s not a magic “data binding”, a “watcher”, a “proxy”, or anything else. It’s a good old number

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment