⚛️ How to use conditional types in TypeScript and React ↓
George Moller
Visit on X@_georgemoller119K followers
42,404 views
⚛️ How to use conditional types in TypeScript and React ↓
6 Comments
Comments from the original post on X (Twitter)

@_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

@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

@enriquemoreno
Typescript syntax gives me eye cancer
5 likes

@_georgemoller
🤣 it’s verbose for sure

@k_stratis
Is type coersion really necessary when using conditional types?

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