Skip navigation
⚛️ React + Typescript Tip: How to create short and easy to remember event types with Typescript ↓
0:00 / 0:32

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

George Moller

@_georgemoller119K followers

Visit on X
1,137 likesDownloadOriginal post

89,542 views

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

10 Comments

Comments from the original post on X (Twitter)

  • George Moller's profile picture

    @_georgemoller

    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 ↓

    4 likes

  • React Universe Conf | Sept 2-4, 2025's profile picture

    @reactuniverse_

    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:

    52 likes

  • Nick Gabe's profile picture

    @ImNickGabe

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

    6 likes

  • ProEvilz's profile picture

    @ProEvilz

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

    4 likes

  • Petar Ivanov's profile picture

    @petarivanovv9

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

    2 likes

  • George Moller's profile picture

    @_georgemoller

    Yes! agree!

  • sandhilt 🐧's profile picture

    @sandhilt

    But… why?

    2 likes

  • rong-sen-e/acc's profile picture

    @igarshmyb

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

    1 like

  • Rafael Michels Motta's profile picture

    @rafaelmotta021

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

    1 like

  • Toyyib 💙's profile picture

    @dev_toykam

    @Rhoy__b @ibr9heem