Course
React + TypeScript Patterns
Typed React the way senior teams practice it: precise component APIs, discriminated state, reusable generic abstractions, polymorphic primitives, and a pragmatic path out of untyped legacy code.
Reviews
Enrolled members can rate this course.
No reviews yet.
Type-Safe Foundations
The mental model, state shapes, events, and inference habits that make typed React predictable.
- 01Types Are Component ContractsStop treating props as syntax and start treating them as an API boundary: what callers may pass, what they must pass, and what combinations are illegal.20mOpen
- 02Discriminated Unions for Real StateModel loading, empty, success, failure, and editor workflows as state machines so impossible screens cannot compile.24mOpen
- 03Events, Forms, and Trusting InferenceType DOM events accurately, use generics in form handlers sparingly, and let TypeScript infer what it already knows.19mOpen
Reusable Typed Abstractions
Generic components, typed hooks, and polymorphic primitives that stay ergonomic under reuse.
- 01Generic Components Without Type GymnasticsBuild tables, selects, and lists that preserve item types through render props and callbacks — without drowning callers in type parameters.25mOpen
- 02Typed Custom Hooks That Age WellDesign hook inputs and returns as stable contracts, preserve generics through the boundary, and avoid object shapes that mutate every render.22mOpen
- 03Polymorphic Components and the `as` PropType components that can render as a button, link, or custom element while preserving the target element's props.26mOpen
Migration and Scale
Boundaries, inference, compiler settings, and incremental refactoring for real codebases.
- 01Designing Component API SurfacesUse union props, composition, and selective inheritance from native elements to build APIs that are strict without becoming hostile.21mOpen
- 02Compiler Settings and Inference at ScaleThe tsconfig choices, utility types, and inference habits that keep a large typed React app fast, honest, and refactorable.18mOpen
- 03Migrating Untyped React IncrementallyConvert a JavaScript React codebase without stopping feature work: boundary-first typing, allowlists, enforcement, and strangler-fig refactoring.27mOpen