正在加载视频...

视频加载失败

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

89,528 次观看 • 1 年前 •via X (Twitter)

10 条评论

George Moller 的头像
George Moller1 年前

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 的头像
React Universe Conf | Sept 2-4, 20251 年前

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 的头像
Nick Gabe1 年前

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

ProEvilz 的头像
ProEvilz1 年前

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

Petar Ivanov 的头像
Petar Ivanov1 年前

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

George Moller 的头像
George Moller1 年前

Yes! agree!

sandhilt 🐧 的头像
sandhilt 🐧1 年前

But… why?

rong-sen-e/acc 的头像
rong-sen-e/acc1 年前

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

Rafael Michels Motta 的头像
Rafael Michels Motta1 年前

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

Toyyib 💙 的头像
Toyyib 💙1 年前

@Rhoy__b @ibr9heem

相关视频