Matt Pocock on X: "🔥 TypeScript Tip #6 🔥 Type helpers change the game when it comes to types in your codebase. They help TypeScript infer more from your code - and make your types a lot more readable. Here, I write my own PropsFrom helper to extract props from any React component."

Conversation

🔥 TypeScript Tip #6 🔥 Type helpers change the game when it comes to types in your codebase. They help TypeScript infer more from your code - and make your types a lot more readable. Here, I write my own PropsFrom helper to extract props from any React component.
12:20 PM · Mar 9, 2022