reading-notes

View the Project on GitHub TrunkOfUkuleles/reading-notes

Questions

  1. Describe use cases for useMemo() and useReducer()

  2. Why do custom hooks need the use prefix? industry standard
  3. What do custom hooks usually do? Whatever you want. Essentially they let you chain states and logic together
  4. Using any list of custom hooks, research and name one that you think will be useful in your applications useReducer
  5. Describe how a hook that fetches API data might work need to set a loading state to flag when teh async is done - useEffect doesn’t play with async

Vocab

reducer - function that takes a current state, and action, and then returns a new state - continuously until you are left with a single return

const reducer = (state, action) => newState;

Preview

Which 3 things had you heard about previously and now have better clarity on?

Which 3 things are you hoping to learn more about in the upcoming lecture/demo?

What are you most excited about trying to implement or see how it works?