TypeScript in React - COMPLETE Tutorial (Crash Course)
Вставка
- Опубліковано 29 тра 2024
- 👉 NEW React & Next.js Course: bytegrad.com/courses/professi...
Hi, I'm Wesley. I'm a brand ambassador for Kinde (paid sponsorship).
👉 Add auth to your app FAST: bit.ly/3QOe1Bh
👉 NEW React & Next.js Course: bytegrad.com/courses/professi...
👉 Professional JavaScript Course: bytegrad.com/courses/professi...
👉 Professional CSS Course: bytegrad.com/courses/professi...
👉 Discord: all my courses have a private Discord where I actively participate
🔔 Email newsletter (BIG update soon): email.bytegrad.com
⏱️ Timestamps:
0:00 JSX to TSX
0:28 Typing variables
1:28 Typing functions
2:55 Typing React components
3:17 React.FC
3:52 Typing props
6:37 Extracting type
7:20 Benefits of TypeScript
7:44 Optional
8:14 Benefits of TypeScript (cont.)
8:35 'any' type
9:14 Type return value of component?
9:38 Union type
10:03 Extracting type
10:45 Typing arrays
11:32 Tuple type
12:21 React.CSSProperties
14:38 Record type
16:01 Typing functions
17:18 Typing children (React.ReactNode)
18:34 React.JSX.Element vs React.ReactNode
19:42 Typing useState setter function
21:01 Default prop values
21:35 Type Alias vs Interface
24:00 ComponentPropsWithoutRef
26:52 ...rest and ...spread
27:49 Intersection (&)
29:03 Interface extends
29:34 Typing event handler functions
31:13 Typing useState hook
34:33 Typing useRef hook
35:29 'as const'
36:55 Omit utility
37:38 'as' Type Assertion
38:31 Generics (EASY!)
42:00 Generics in React
45:10 index.d.ts vs types.ts
45:34 import type
47:05 'unknown' type
48:20 Zod
48:58 ts-reset library
49:28 Third-party types ('@types' / DefinitelyTyped)
50:33 tsconfig.json
52:09 next-env.d.ts
#webdevelopment #programming #coding
Just discovered this guy. Amazing. Doesn't waste time. Doesn't try to be funny. No nonsense clear, solid info.
So far the best «Everything you need to know » for Typescript with React ! ❤
Glad you think so!
I think the same too , the best video for typescript I've seen
Insanely good.
Seriously the best typescript video I needed
I was actually looking the for useReducer, useMemo, and useCallback when I saw the title "COMPLETE"..
Your videos are excellent - amongst the best. You move quickly, waste zero time, and get right down to brass tacks. No fluff, lame banter, etc. I wish all course authors were as sharp and succinct! Well done, I like your style.
100% agree, love that it is straight to the point, and examples are great and very clear.
Agreed. and my next compliment has nothing to do with the content - I genuinely think he's good looking. Not flirting though, just stating the truth about his appearance. He looks clean, tidy and healthy. If only majority of devs could take care of their health more. And his skin is flawless and glowing! Not sure if he used any filter when recording this vid, but nevertheless, tell me your secret @ByteGrad !😅
@@jou3883😂
Shouldn't the title "Complete" arrive with (at least) useReducer..?
I agree. Straight to the point. Excellent presentation and explanation as well.
You're really nailing a great balance of introductory learning videos along with advanced topics. I find myself on your channel organically all the time and always find what need. Awesome work!
ur voice, tone and pace makes ur tutorials way better to follow and understand than everyone else, am i the only 1 who thinks this ?
exactly. today I started watching a random video in this channel and I loved the way he speaks and immediately I subscribed to it and shared it to my friends.....
Been quite sick for the past few days and this calm to-the-point teaching approach is just the perfect way to pass time productivly. Keep up the good work!
Whatever you teach goes straight to my mind's knowledge base, without me needing to organize the information. Thank you so much!
what I like about your videos is that I feel like you know what you're talking about. I really don't like learning bad practices and many tutorials unfortunately teach those because nobody is perfect of course :D but I really like that it's doesn't sound like you are repeating something you've read yesterday but it is what you really know and understand and it isn't "just because" but it has a reason. thank you
You are the best tutor; you know how to teach concepts very well. I have taken many paid courses and learned from more than 50+ UA-cam tutors, no one matches your teaching style. Perfect pace, not slow, not fast, just 100% perfect. Clear concepts with practical examples. Thanks.
Your voice is relaxing but was bit low in this video.
Came across your channel today and this is the second video I have watched. I must say this is gold standard. Thank you for the hard work you have put in.
I had to learn all these the hard way on the job. I'm glad you are helping developers out with this stuff... Kudos!
Nice thing about tuples, you can unionize them for different lengths. If you accept 4 numbers for padding for [top, right, bottom, left] or 2 values for just top and bottom ([x, y]), say, you could annotate tuple elements: padding: [x: number, y: number] | [left: number, right: number, bottom: number, left: number], then compute your padding based on the array length.
Epic video, it is rare to see so much info so clearly communicated. Totally enjoyable to watch and the perfect pace for getting started with Typescript. Thanks alot!
By far best. Am going to suggest this video to every one in my team or ppl i know who are starting with Typescript. Thank you ❤
i appreciate the roadmap, where you started, continued and ended is just awesome, easy to learn and easy to remember.
thanks alot.
Really appreciate you sharing Typescript fundamentals in such an easy to follow way ! This will now serve as my typescript refresher.
I would of loved to watch this video 4 years ago when i was looking for a new job and i applied for one in which typescript was a nice-to-have requirement and when i joined the project it turned to be a whole react/node project written in TS. Everything you explain along the video i learned it struggling and pulling my hairs off of my head lol. Now i watched your video out of curiosity and i can say it's the best "Everything you need to know" video i've seen according to my experience. You really nailed it!
Love your method of teaching, straight to the point and concise. Subscribed.
Great Tutorial, your slower pace and soothing voice made it easier to understand most of these concepts. Too many tutors who just talk to quick and assume the learners pace is at expert level. 🙌
Thanks a lot my friend, there are tons of tutorials out there but there are also people who have the basics of JS and React already. Your videos are suitable for people like me, learning fast and simple
Love your super fast point to point teaching approach
it's sad that you can only like a video one time :(
Extremely well delivered content
I’ve had a problem with overall quality of content regarding development on youtube where you are not exactly learning but your way of teaching is really good and instead of just following along and having something that works your video allowed me to lewrn and make something of my own
Best Typescript course so far. I've learned alot thanks a ton brother. :)
I've watched thousands of youtube channels and bro i love yours the best! Not sure if it's beginner friendly per se but for me it helps validate my understanding. ensures me that i am not entirely thinking about things wrong.
the best typescript tutorial I've seen so far!
Best explanation ever! 🔥 The best part is you just explained all the different scenarios with only one Button component. Need only this one video for typescript with React ! ❤
Amazing quick explanations! I've watched the video in one breath. Thanks!!
Definitely the best explanation that can easily be digested I got for Typescript generics.
So much knowledge compressed, thank you!
oh my god, thank you. this video is awesome, an hour of pure gold.
Thank you for the valuable content in this video! I've been writing in TypeScript for quite a while, but I still learned a lot from watching it, and I recommend it to everyone.
It would be great to make tutorials for creating a Next.js application from scratch. ❣👏
This is awesome! Thanks so much for the video and especially the timestamps.
I learn about TS in this video more than spending a whole year by myself lmao , really good content as always!
Thank you so much for this video. I recently started a job, and it requires typescript, and this helped me a lot, it's incredible
this was simply perfect! thanks a ton
Very informative video - clearly and concisely explaining all the major aspects someone needs in TS
This is just awesome! You've managed to explain most of the Typescript in React in just 1-hout video!
Crazy amount of value in this mini course, Thanks a lot 🙏
Super clear explanations of Generics, thanks a lot man!
Wesley, thank you. This tutorial is amazing! I understand more from this video than from udemy TS course
Great in details and very easy to understand, Thanks a lot man ❤
This is top-shelf educational content. Simple and easy to reference I have learned a lot. Thank you
Great to hear, thanks
great teaching bro. very helpful for as a react js developer trying to learn react typescript.
Very quick but very helpful for experienced backend developers whom looking for get into TypeScript quickly ... thanks a lot (Y)
That was very helpful I was looking for it to make things clearer!
this is so complete ! thank you
Such a thorough video. Thank you! This has so much that I didn't know before!
Glad it was helpful!
My brother,
All my questions, you have answered
I know, you know your stuff
Great Job! 😄
very lovely and described TS in react. Gr8 Thanks
This is exactly what I was looking for!
Thank you very much 👏🏻
no BS, this is clean and integral handbook for react-ts dev, keep it up!
Appreciate it!
I like that you are opinionated and use the cleanest looking formats , keep up the good work
Thank you so much. This video is gold.
Concise and helpful. Love it.😊
Thanks a lot man. Will be watching a lot of your videos. They're very well made. Sometimes a bit fast for me, but I can always pause or play them slower. Anyways, thanks for the hard work.
Awesome tutorial . Your channel deserves more subscribers. Just keep uploading videos. We are enjoying your content.
Just amazing! Thanks for sharing.
Thank you for this!
I really hope you publish more React + TypeScript content as there isn't enough of it on UA-cam which teaches both together.
Exactly 💯, it's good to see videos like this, JavaScript mastery released a video recently saying React isn't NextJs and he talked about server components and how we must change the way we think when using the new nextJs 13 app router, the new changes can be a bit overwhelming especially for newbies just transitioning from react to nextJs, I still use the old pages directly for my learning for now, I feel the app router to be confusing
The first time I saw your video, it was react mistakes junior developers make, I'm so intrigued by the quality of the presentation and the way you speak it's unique, it helps me easily understand, You are good!! real good!!
Amazing, such an amazing content you’re putting on internet.
I wish you a lot of success, ❤️
Great typescript tutoriol, thank you so much
That's great, thank you ❤ Finally I understand
Very valuable. I start to think you are just at the top of the JS/Typescript/React game in UA-cam.
I just recently started coding using Typescript and i really needed this. I re-coded one of my React projects using TS but Im not sure if i used it right. I got no errors but i still have some questions. Im sure this video will be of great help. Thank you.
Dude, your timing is perfect, and the way you teach is on another level. I never found anyone with Nextjs 13 and would be glad if you make one on Nextjs 13 with Redux
Do you really need redux nowadays?. ContextAPI abstracts a lot
Fabulous, just found the channel recently and helping me allot.
Hopeing for more tips and tricks for reactTs.
Fantastic refresher plus tricks.
Very amazing content sir! straight to the point, clear and literally everything I need to know
india, stop using "sir"
this makes you look like you are brainless parrots repeating this "sir" word
This is best! You are extremely professional, experienced and also teach noob. Amzing.
Thank you so much for this video.
I learned a lot.
This video is amazing. Really appreciate it
Thank you so much, this is a great tutorial and very helpful.
What extension do you use for typescript?
The best react with typescript video I've ever seen.
Have you find those which called themselves "COMPLETE" as this one,
But also include useReducer, useCallback and useMemo..? 👀
Wish I have found this video earlier. Simply the best.
I enjoyed your videos! Do you have any plans to create a tutorial on building an inventory management system using Next.js? Your tutorials are fantastic, and I'd love to see one on this topic! I also want to include as well as utilize free APIs for data integration.
I'm really GRAD i've found your channel. So much useful knowledge and I really like the way you explain.
Good one.😄
God bless you, man, thank you for the lesson👍👍👍
Wow thanks. Learn a lot. specially the ReactNode and why we need to pass children to make it works. Thanks again 😊😊👍👍
It is almost one hour duration video. But I don't know why i felt that only 15 mins passed when the video finishes. Really this is a best typescript course 🔥
Thank you so much for this amazing course❤
great tutorial, thank you !!
excellent videos bro!!!! keep it up!!!
great tutorial, thank you! i know that wrinkles are bad but you could allow yourself make some facial expressions from time to time :)
Great Job , I enjoy every single section and explication in this video. Thanks so much!!! Keep Going new follower here
Now that's what I call content! Awesome job!
Thank you for an amazing tutorial
Your explanation of generics is the best I've ever heard 👏
I can't wait for your react course.
Thank you! 😃
Great Course.
Thank you for the informative and helpful tutorial
learn a lot from this vedio..Thank you sir❤
Amazing video!
Thank you for your job!)) I have never get such good quality info in Russian or any other languages!
Hey, just saw your video on useEffect mistakes and I wanted to hear your explanation of the key prop importance in React. I saw many videos and read posts that talk about it but never saw a real world example with complex applications. Let's say for a product component with multiple properties to map in nested React nodes, where should we put the key prop, and what should it be?
Thanks for your perception!
You upload what I really need right now
this guy clearly knows what he’s doing. i trust him 100%
exactly 😂😂
thanks a lot! very nice video
I'm waiting for the Nextjs+React course!
I've learned a lot more in 1 day of watching your videos than following through a 7hr tutorial of building an app. I get overwhelmed with some of the small stuffs that they dont explain and ended up just doing a copy paste instead of actually learning, dont get me wrong, they are good and I appreciate the time and effort they give to produce such contents, its just its not beginner friendly, and you sir gave me all the basic ideas i need to understand those tuturials fully. So i wouldn't mind purchasing for your course coz i know I will learn a lot more. Hope you release it soon!
Thanks, appreciate it. It’s here soon, make sure you’re subscribed to the email newsletter :)
Thanks teacher. Which snippets did you use to autocomplete?
To the point nice explanation man ❤