Skip to the content.
Home Page
Class 31 Notes
Review, Research, and Discussion
- UseReducer is good for handling a lot of data in state to simplify the process and better organize it all.
- Custom hooks need the use prefix so that React can differentiate a React hook from just a regular function name.
- Custom React hooks do whatever you assign them to do.
- UseHide
- A hook that triggers a API call is triggered when a specific action is performed. Then can store the API results data in state.
Terms
- Reducer: it is a function that manages a change to state in complex state objects by handling an action.