Skip navigation
⚛️ How to use conditional types in TypeScript and React ↓
0:00 / 1:26

⚛️ How to use conditional types in TypeScript and React ↓

George Moller

@_georgemoller119K followers

Visit on X
566 likesDownloadOriginal post

42,404 views

⚛️ How to use conditional types in TypeScript and React ↓

6 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 ↓

    3 likes

  • David GG's profile picture

    @deibiz

    I understand that this is a simplification, but my first choice would have been to create 3 methods. Plus, I’m not entirely convinced about having to specify the type as an argument, which could be avoided with function overloading.

    6 likes

  • Enrique Moreno's profile picture

    @enriquemoreno

    Typescript syntax gives me eye cancer

    5 likes

  • George Moller's profile picture

    @_georgemoller

    🤣 it’s verbose for sure

  • Kosta Stratis's profile picture

    @k_stratis

    Is type coersion really necessary when using conditional types?

  • حودة's profile picture

    @_Mahmoud_Hoda_

    ارهقتنا معك يا رجل