Overview
Introduction
Fundamentals
- The very basics
- Component children
Typing Hooks
- Type the
useState
hook - Setting state without a default value
- State and events, an exercise
- State and events, a solution
- Passing
setState
and reusing events, an exercise - Passing
setState
and reusing events, a solution - TypeScript's unions in React
Working with Reducers
- Typing reducers
- Passing
dispatch
as a prop - Typing actions and reducers, an exercise
- Typing actions and reducers, a solution
The Context API
Just Enough TypeScript
- Generics
- Utility types, a tour
- Deriving a partial type for updating, a problem statement
- Deriving a partial type for updating, a solution
- Type template literals
- Type template literals, utility types, and operators
The Context API, Revisited
Advanced component patterns
Appendix: Bonus Content
There are some things that we probably won't get to in this workshop, but I'm including them as an expansion pack for you to explore.