01Chapter 1: Setting up TypeScript for TSXAssume you know function components, props, state, and JSX. You should also know TypeScript interfaces, type aliases, unions, and generics. A bundler such as Vite or Next.js should already run your React project.1 min read
02Chapter 2: React.FC or a plain function?Assume you know function components, JSX, hooks, and basic TypeScript unions and generics. The examples use strict TypeScript.1 min read
03Chapter 3: Modeling variants with discriminated unionsAssume you know function components, JSX, hooks, unions, and generics. These patterns help the compiler check component boundaries and state transitions.1 min read