Static typing with Flow and TypeScript
summary
Shows exactly how Flow and TypeScript behave with React: converts a small image‑viewer app, uses webpack and a precompile step to strip or transform JSX, and ships a working build. Demonstrates a practical react.jsx wrapper hack plus a ts-gx loader chain to satisfy TypeScript, explains why ES6 classes remove pain, and documents that mixins break inference. Catches real bugs (string vs number prop/state errors) and proves the app compiles and runs.
AI-written summary · about
chapters (15)
- 0:00Start
- 0:21Static Typing
- 2:38Flow in Typescript
- 3:33Add Function
- 4:16Type Annotations
- 6:30Webpack
- 7:45Type Script Loader
- 8:19Typescript Does Not Understand Jsx
- 10:44Pre Compile
- 12:18External Modules
- 15:30Pre Compilation
- 24:50Errors
- 25:17Returned Missing Annotation
- 26:40Jsx Loader
- 31:21References
related talks
30mFlow Typing a React Codebase
42mStatic Type Checking with FlowType
57mTypeScript for React developers
58mThe Road to a Statically Typed Future
23mFlow or how I learned to stop worrying and typecheck my React code
49mTypescript + React
58mFlow - Am I Your Type?
23mTypeScript Ruined My Life (In a Good Way)
