TypeScript Generics are EASY once you know this

preview_player
Показать описание
Hi, I'm Wesley. I'm a brand ambassador for Kinde (paid sponsorship).

👉 Discord: all my courses have a private Discord where I actively participate

⏱️ Timestamps:
0:00 Example 1
4:11 Example 2
6:58 Example 3 (multiple type parameters)
9:23 React example
13:31 Extracting type
15:25 State setter function
17:08 'extends'
18:54 Inference vs specifying yourself

#webdevelopment #programming #coding

Note that my videos may contain mistakes. Always verify yourself that your code is safe and does what you want it to do for your specific situation. You agree by watching the videos that you are solely responsible for any mistakes in your code.

This channel and all its content is owned & operated by ByteGrad Sp. z o.o. with Tax ID: PL6762676561 .
.
Рекомендации по теме
Комментарии
Автор

I was avoiding generics for a while for no reason, now, finally I will avoid it with a reason

jotasenator
Автор

1st time I watched it I got 80%, the 2nd time 95%. Now I just need to code myself to get it 100%. The best explanation of all YouTube. Thank you so much.

Bread-vkfl
Автор

I am react developer and never used typescript, just out of curiosity started watching it. Now i am suddenly feeling like i know complete Typescript.
I mean how well you explained it, i can understand every second of this video. This is really some next level teaching skill.

ashishboora
Автор

Honestly - this is probably the best description / example I've seen yet! Keep it up!

timlind
Автор

As someone who has been anxious even when seeing cryptic type notations, this lesson is almost like a therapy session. For me, adding <T> just after writing the function name make sense than coming back to it after annotating arguments. It reads like "this function / class is meant to work with these types".. Thank you!

bcb
Автор

I wish I could like this video a 100 times. You are the best teacher ever who sticks to the point and every second is worth watching and learning. Great job!

sandeepamarnath
Автор

Spectacular video, had it open in a side tab for a month and I can't regret more not watching it before. Clearest explanation I've seen in a while

tomisadone
Автор

I honestly had such a hard time understanding generics and how they differed from explicitly declaring your types. Your emphasis on generics defining *relationships* finally made everything click for me. Thank you for explaining with all the examples!!

xeygarz
Автор

Your lessons are great and easy to understand for me, thnx, keep going, 👍👍✅🚀

davidgibradze
Автор

Wow this video shed a ton of light on some of the confusing pieces around generics for me. The content was so well put together and with the real life example with usages in react itself it really drove the point home from your early examples of generic benefits and when ti use them. Amazing way to teach these concepts. Thanks! Subscribed.

MrBrandenS
Автор

thanks for the clarity. you are great at explaining concepts, your vids have objectively made me better at TS and feels great when i manage to remember parts of vids when i encounter scenarios on my projects

xReDxTuRtLeZx
Автор

I never realised generics are that simple to explain. Simply great! 👍🏽

IrfanIdris
Автор

Thanks for the best tutorial on generics I've ever found 🤗

MsFunny
Автор

The relationship tip was all I need to understand the generics! thanks mn

ally
Автор

I agree, this is the best explanation of generics I've encountered. Makes them seem easy, so your video description is on point!

fluntimes
Автор

This is the best video I've seen about generics.

Bangladesh
Автор

the way you explain is so clean and concise

lildot
Автор

your channel is great for junior devs who already know javascript and got job but they need more tricks and knowledge to become a better developer

ALI-seph
Автор

easier than I thought now after watching your video, thank you very much!

sofianesaid
Автор

This is hands down the best explanation I've ever seen on type Generics. Thank you soo much!

xi_red