Completed
Welcome
Class Central Classrooms beta
YouTube videos curated by Class Central.
Classroom Contents
Context API React + Typescript - useContext & useReducer Examples
Automatically move to the next video in the Classroom when playback concludes
- 1 Intro
- 2 Welcome
- 3 Starter Code
- 4 Extracting initial state & types
- 5 useCounterContext hook & type
- 6 Create Context with initial context state
- 7 Context Provider
- 8 useCallback
- 9 Applying the Provider
- 10 Custom hooks to deliver context
- 11 Spreading the ...initState into the Provider parameters is not really necessary. It does help document but really just creates extra boilerplate. You can pull it in from the lexical scope of the Pro…