Matt Pocock
Matt is an independent TypeScript educator, building awesome self-paced courses at Total TypeScript.
React's Most Useful TypesWatch video: React's Most Useful Types
React Day Berlin 2023
21 min
React's Most Useful Types
Top ContentWe don't think of React as shipping its own types. But React's types are a core part of the framework - overseen by the React team, and co-ordinated with React's major releases.In this live coding talk, we'll look at all the types you've been missing out on. How do you get the props type from a component? How do you know what ref a component takes? Should you use React.FC? And what's the deal with JSX.Element?You'll walk away with a bunch of exciting ideas to take to your React applications, and hopefully a new appreciation for the wonders of React and TypeScript working together.
TypeScript and React: Secrets of a Happy Marriage
React Advanced 2022
21 min
TypeScript and React: Secrets of a Happy Marriage
Top ContentTypeScript and React are inseparable. What's the secret to their successful union? Quite a lot of surprisingly strange code. Learn why useRef always feels weird, how to wrangle generics in custom hooks, and how union types can transform your components.
Make legacy code delightful with statecharts
React Finland 2021
22 min
Make legacy code delightful with statecharts
If you must have legacy code, you want it written in statecharts. We'll break down the mental models required for understanding unfamiliar UI code, and compare the maintenance costs with and without statecharts.