TypeScript for React developers
summary
Shows a concrete migration path: add create-react-app + TypeScript, flip a .js to .tsx, enable strict: true, and let inference catch most types while reserving any as an escape hatch. Demonstrates JSX typing, function vs class component generics, discriminated-union state machines, and using createSlice from Redux Starter Kit to generate typed actions so dispatching mySlice.actions.incrementBy(3) is statically checked and editor intellisense works.
AI-written summary · about
chapters (13)
- 0:00Start
- 3:48Benefits of Using Typescript Type-Checking and Intelligence
- 4:08Key Reasons To Use Typescript
- 4:40Typescript Builds on Top of Javascript
- 5:17Compiler
- 10:33Install Typescript
- 16:08Strict Mode
- 22:03Void Type
- 27:29Interfaces or Complex Types
- 30:34Generic Generics
- 35:24Using Class Components
- 43:32Generic Functions
- 54:45Arguments
related talks
57mBuilding Scalable, Maintainable Apps Using TypeScript and React
49mTypescript + React
23mTypeScript + React = ❤️
01h 25mWorkshop: TypeScript Plus React = Love
42mTypeScript Patterns for Better React Components
31mTypeScript for JavaScripties
24mTypeScript - You'll Like It
30mLevel Up Your React With TypeScript
