Using Hooks and Codegen
summary
A concrete pipeline emerges: embed the Monaco editor in docs, feed it TypeScript declarations, and get in-browser autocompletion; use TypeScript generics and hooks to enforce response shapes at compile time; generate api.ts from OpenAPI with a CLI (yarn restful-react import) to produce ready-made hooks like useRandomGif; the result is end-to-end type safety across REST, near-zero UI runtime exceptions except network errors, and a reported feature turnaround that drops from days to minutes.
AI-written summary · about
chapters (8)
- 0:00Start
- 4:30Design System
- 4:54React Style Goddess
- 13:11Meaningful Discussions
- 16:30Restful React
- 20:37Open Api
- 21:19Open Api Parser
- 24:51Optional Chaining
related talks
30mPowerful REST in a GraphQL world
24mReliable I/O with the TypeScript Compiler API
33mTypeScript for APIs
27mWeb applications of the future with TypeScript and GraphQL
30mReact Superpowers with GraphQL and TypeScript
34mGenerating Types without climbing a tree
39mEnd to end typing for web applications
28mStrong RESTful Contracts in a GraphQL world
