Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Advanced TypeScript for React

Advanced TypeScript for React

Participants in this workshop will deep dive into the patterns of typing React Components and explore strategies for maintaining type-safe and scalable code. We will cover a wide range of topics, from Compound & Polymorphic Components to Discriminated Union Props, Generic Components, and much more.

Glenn Reyes

April 04, 2024
Tweet

More Decks by Glenn Reyes

Other Decks in Technology

Transcript

  1. @glnnrys Overview • Warm-up — HTML A tt ribute Types

    • Session 1 — Discriminated Union Types • Session 2 — Compound & Polymorphic Components • 10-min Break • Session 3 — Generic Components • Session 4 — Typing Components wrapped in forwardRef • Session 5 — Miscellaneous TypeScript Tips for React