Loading video...

Video Failed to Load

Go Home

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

42,383 views • 1 year ago •via X (Twitter)

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

David GG's profile picture
David GG1 year ago

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.

Enrique Moreno's profile picture
Enrique Moreno1 year ago

Typescript syntax gives me eye cancer

George Moller's profile picture
George Moller1 year ago

🤣 it’s verbose for sure

Kosta Stratis's profile picture
Kosta Stratis1 year ago

Is type coersion really necessary when using conditional types?

حودة's profile picture
حودة1 year ago

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

Related Videos