TypeScript with React
Type props, children, state, refs, reducers, events, forms, context, custom hooks, generic and polymorphic components, and the patterns that make React code safe.
You already know React from the React course: components, props, state, effects. This phase does not teach React again. It teaches how to describe it with types, so the compiler checks every prop you pass, every event you handle and every piece of state you keep.
You'll learn the types React ships (ReactNode, ComponentProps, ChangeEvent, RefObject, Dispatch), how TypeScript infers state, and how to write your own: props with variants, reducers with discriminated unions, context with a guard hook, generic lists and selects, and a polymorphic component.
Every example runs real React 19 and is type-checked against @types/react 19.3 by the real compiler in your browser. The Types panel shows what tsc says, the Console shows what the page does.
Practise this phase
Hands-on exercises: write the code, see your page live, and press Check to have it tested automatically.