Loading video...

Video Failed to Load

Go Home

⚛️ React + Typescript Tip: How to create short and easy to remember event types with Typescript ↓

89,542 views • 1 year ago •via X (Twitter)

10 Comments

George Moller's profile picture
George Moller1 year ago

I've been working professionally with React for more than 8 years and I compiled all my knowledge into 100+ infographics and 70+ video tutorials just like this one. Check them out ↓

React Universe Conf | Sept 2-4, 2025's profile picture
React Universe Conf | Sept 2-4, 20251 year ago

React Universe is a constantly evolving ecosystem—driving curiosity and continuous learning. And that's what we love about it! 🙌 Join us at React Universe Conf 2025 to future-proof your dev team:

Nick Gabe's profile picture
Nick Gabe1 year ago

there's a reason why those events are generic...

ProEvilz's profile picture
ProEvilz1 year ago

More useful, practical tip for React and Typescript: You can just hover over and just grab the type easily.

Petar Ivanov's profile picture
Petar Ivanov1 year ago

Using TypeScript improves the overall developer experience. I think it's a great productivity boost, especially in larger codebases.

George Moller's profile picture
George Moller1 year ago

Yes! agree!

sandhilt 🐧's profile picture
sandhilt 🐧1 year ago

But… why?

rong-sen-e/acc's profile picture
rong-sen-e/acc1 year ago

ComponentProps<'input'>['onChange'] but why not onInput

Rafael Michels Motta's profile picture
Rafael Michels Motta1 year ago

When it’s simple, just write the function inline and get type inference for free. No need to import or declare any types

Toyyib 💙's profile picture
Toyyib 💙1 year ago

@Rhoy__b @ibr9heem

Related Videos