Skip to content

Instantly share code, notes, and snippets.

@nbogie
Last active June 5, 2020 14:55
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 nbogie/7beb3424fb6b5192b62b15b87e5c2e44 to your computer and use it in GitHub Desktop.
Save nbogie/7beb3424fb6b5192b62b15b87e5c2e44 to your computer and use it in GitHub Desktop.
student issues: react week 3

React week 3 - student questions and issues for class

  • setFoo doesn't magically update foo (useState):
  • useState("someinitvalue") only initialises the variable the first time the component is ?rendered?. Subsequent calls to useState return the new current value of the variable.
  • passing props down and down. useContext? "
    • should I learn redux?
  • "should i learn class components?"
  • to investigate: synthetic events an issue?

more pure js exercises please - https://gist.github.com/nbogie/3b9fdc130a7b7e6caea787c0a6ddad65 more hw - https://codesandbox.io/s/floral-water-w6z95?file=/src/exercises/exercise2/part1.js

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