Learn Typescript with React | Quick Crash Course

  Рет қаралды 86,385

developedbyed

developedbyed

Күн бұрын

Learn more web development with my courses 🔥
developedbyed.com/
Today we are going to explore Typescript and how to get started with it using React and Next.js. This is a quick typescript crash course with react that will cover the absolute basics and how to get up and going. I honestly think it's a great idea to add typescript to any project that you are working on, especially new projects. Typescript will help you catch unexpected errors and give you code suggestions.
Chapters:
00:00 Intro
00:48 Getting Started
02:25 React Hooks
04:10 Fetching Data
07:00 Passing Props
11:28 Children props
13:34 Event Listeners
13:35 Where to go next
🛴 Follow me on:
Twitter: / developedbyed
Instagram: / developedbyed
Github: github.com/developedbyed/
#programming #react #typescript

Пікірлер: 105
@milkdrom3da
@milkdrom3da 8 ай бұрын
This short crash course was exatly what I needed!! I have learned TS with plain JS and wanted to use it in my react app. Thank you so much, Eddy!!
@iqwebserve3973
@iqwebserve3973 11 ай бұрын
Love that you are using Vite too! For your toggle: false, I think you should elaborate to learners that you are also allowed to give TS a fixed value. So, with toggle: false, that is all that is allowed. Had it been toggle: boolean, then you can set true or false. Good video, thanks.
@MrArod1207
@MrArod1207 Жыл бұрын
This was awesome! I've been looking at typescript tutorials the past couple of weeks and all are over complicated. I even laughed a couple of times. Great video
@jaiminparmar7996
@jaiminparmar7996 Жыл бұрын
Found this just in time while I was working on a react + typescript project, thank you!
@allenbtw
@allenbtw Жыл бұрын
Ed, you're literally life-saver, I was searching for React Typescript, thanks!
@fullstackspiderman
@fullstackspiderman Жыл бұрын
Ed, you surprised me with this course, I’m currently learning Typescript to use in my existing react applications.. thanks 🙏 again for another useful tutorial
@developedbyed
@developedbyed Жыл бұрын
That’s so nice of you to say! Thank youuu!
@abdu1wahid105
@abdu1wahid105 9 ай бұрын
Currently navigating the boulevard of broken dreams that is Next.js 13. This recap was perfect. 😊 Thanks Ed
@william.darrigo
@william.darrigo 7 ай бұрын
Love your teaching style! Simple and straight to the point
@zancrow_gaming
@zancrow_gaming 6 ай бұрын
I am a fullstack developer been wanting ti learn typescript for a while now. Thought it was like a totally different language. But its not just javascript strictly typed for better development experiece. Used it for the first time ever with node js for auth today i love it. Awsome. This simple straight to the point video has motivated me to test it out with react and next. ❤ thanks😊
@nickjohnson9770
@nickjohnson9770 Жыл бұрын
liked and subscribed just cuz you got a good vibe. the very effective teaching is just an added bonus!
@jamesbest2221
@jamesbest2221 Жыл бұрын
Yay! Thank you, exactly what I needed!
@Way_Of_The_Light
@Way_Of_The_Light Жыл бұрын
Awesome man! Love your work and your personality 🌟🙏
@rolandlopez7763
@rolandlopez7763 5 ай бұрын
Wow! What a video, straight to the point and simple too! I learned quite a bit here, Thank You!!
@ohiwantyoutobelieve
@ohiwantyoutobelieve Жыл бұрын
I loved the final recommendations, just start using typescript slowly without over complicaring things
@marcelo.dota2510
@marcelo.dota2510 Жыл бұрын
I was literally searching for a typescript & react course, and you created one 28 minutes ago, I died
@end-me-please
@end-me-please Жыл бұрын
RIP
@54peace
@54peace Жыл бұрын
*Pressed F*
@wzt9376
@wzt9376 Ай бұрын
A year ago we lost you. Just to let you know wherever you are we miss you.
@hehimselfishim
@hehimselfishim 10 ай бұрын
this makes it look SO easy! now i want to use TS even though i’ve been steering clear because i hear it’s complicated. i guess i’ll have to try it now!
@mithunprabhu2671
@mithunprabhu2671 Жыл бұрын
I was very much waiting this from you.... thank you buddy(ed)😀
@extradipofhoney6189
@extradipofhoney6189 Жыл бұрын
Love your output rate recently Ed! Your content keeps evolving . We're grateful!
@kirillbaryba746
@kirillbaryba746 Жыл бұрын
Thank you! 🔥it will be interesting to see best practices for react architecture in 2023 🔥🔥🔥
@codernerd7076
@codernerd7076 Жыл бұрын
Your videos keep getting better and better 👏
@paul_pintang
@paul_pintang Жыл бұрын
Wowww! I've been waiting for this!
@riacharda
@riacharda 9 ай бұрын
This was a great tutorial. I'm currently learning typescript and Next 13. I get issues calling child components in parent components. They tend to be ones like "component x is unassignable" and not being able to select an object property dynamically through a string. Edit: I figured out the definition: type iconCollection{ [key:string]:React.ComponentType; } Basically I had a defined set of SVG icons as react components. In the icon component, the icon will be dynamically imported and returned based on the "iconCollection" property name. 🙂
@CuongVu-yy4cg
@CuongVu-yy4cg Жыл бұрын
Thank you, this video is exactly what I need.
@deepak8586
@deepak8586 Жыл бұрын
awesome!!! now we need a creative react + typescript tutorials haha!!!
@koreandude
@koreandude Жыл бұрын
Heya Ed! Any timeline when the updated course will be released? Thanks!
@msana4420
@msana4420 Жыл бұрын
Ah shit, finally got a Jebediah beard ;) Awesome content as always. I'd like to see you murking around with unit tests of a halfway complex app. Like with 3rd party oauth libraries or maps/navigation libs. Good job!
@yanaiedri
@yanaiedri Жыл бұрын
for props with Children, you can use the interface like that (react build-in interface) : interface Props extends PropsWithChildren { ....
@reactjs1900
@reactjs1900 Жыл бұрын
I was waiting for this
@muhammadzakarya8057
@muhammadzakarya8057 10 ай бұрын
Great Video! explained necassary things in 17 mnts.
@andifaizal6848
@andifaizal6848 Жыл бұрын
Awesome,thank you dev ed
@ban-prem-001
@ban-prem-001 Жыл бұрын
title: typescript react setup: vite project: nextjs 😂
@anna.eis4
@anna.eis4 11 ай бұрын
Awesome content! Just when I was looking for a well-explained way to add TS to React, you made it short and simple. I have an off-topic question tho': Don't remember to see an explanation in any of your videos about this but do you consider a good practice to omit semicolons? Cheers!
@kwii22789
@kwii22789 11 ай бұрын
Dont worry if u use or not use semicolons. Most companies will have automatic linters and formatters that will enforce one or the other.
@triggerre
@triggerre 8 ай бұрын
in getPost what if you only need the id and title. Do you still need to declare message on PostProps?
@alivaliev5152
@alivaliev5152 8 ай бұрын
What theme are you using? It looks gorgeous!
@yzdeathxy
@yzdeathxy 7 ай бұрын
Material Theme
@korsoskubi8555
@korsoskubi8555 Жыл бұрын
Hey dev ed, are you going to update the creative react and redux course? Thanks in advance.
@julianvelez6563
@julianvelez6563 Жыл бұрын
Nice work bro
@Popo-hr6gc
@Popo-hr6gc Жыл бұрын
Why in the getPost(), you have to specify that it is a Promise and call the type? In the children example, you just called the type. I’ve seen cases like specifying a component as a FC
@adityapawar7463
@adityapawar7463 Жыл бұрын
How did you shift from a basic typescript app to a nextjs one? How did you set it up? Do you have the GitHub file?
@Xaoticex
@Xaoticex Жыл бұрын
yea how does this work if I cant code along you?
@pascalpur
@pascalpur Жыл бұрын
Does Prettier work on default with TS in React or NextJs?
@gautamanand1201
@gautamanand1201 Жыл бұрын
Similar can be done by npx create-react-app projectname --template=typescript With less clutter preexisting files
@deepak8586
@deepak8586 Жыл бұрын
you might as well use vite react typescript template
@dev_adem
@dev_adem 3 ай бұрын
Thanks mate. But you started with Vite and jumped to the ready Next draft. Where is that draft Next project?
@AndreMazure
@AndreMazure Жыл бұрын
You speak very clean English language. Thank you)
@bassilmohammad7266
@bassilmohammad7266 Жыл бұрын
Thank you I was waiting ❤️❤️❤️🌹🌹🌹
@bassilmohammad7266
@bassilmohammad7266 Жыл бұрын
But why you Don't use creat react app i use this because i learn it from your react course?
@developedbyed
@developedbyed Жыл бұрын
Hope you like it!
@shoukathennadesigns5135
@shoukathennadesigns5135 Жыл бұрын
@@developedbyed could you please make a tutorial on next js swr hook and auth 0 in next js
@developedbyed
@developedbyed Жыл бұрын
It will be updated to Next and Vite 🔥
@Woeden
@Woeden 10 ай бұрын
Many thanks
@testermobile834
@testermobile834 Жыл бұрын
Hey, can you please make a video on the extensions that you use on VSCode & themes please
@andreyokhrimenko2271
@andreyokhrimenko2271 10 ай бұрын
Thanks for cool video, but only one issue - for next videos if you start with creating project on vite-react don`t use for example nextjs project, cause people who learning stuff can`t reproduce your code!
@birdofhermes6152
@birdofhermes6152 11 ай бұрын
Good stuff
@regilearn2138
@regilearn2138 Жыл бұрын
Please do more PERN/MERN sequilze/MUI advanced typescript videos.
@RavindraSingh-lp9pl
@RavindraSingh-lp9pl 8 ай бұрын
Please make project on Typescript REact
@allisondealmeida
@allisondealmeida Жыл бұрын
I like the theme and font you are using, what are they?
@CodeOnBlocks
@CodeOnBlocks 10 ай бұрын
Did you find out what the names were?
@yulipariz3309
@yulipariz3309 Жыл бұрын
Acá una seguidora de Argentina, que además de estar aprendiendo a programar, practico el inglés. Muchas gracias saludos :)
@Nickben89
@Nickben89 Жыл бұрын
gauchita?
@yulipariz3309
@yulipariz3309 Жыл бұрын
@@Nickben89 tu hermana
@Nickben89
@Nickben89 Жыл бұрын
@@yulipariz3309 ni te gastes en aprender a programar turri, en 2 anios te remplazA chat gpt jajajajjajajajajajjajajajajajjaja
@fergusmeldrum38
@fergusmeldrum38 7 ай бұрын
you are funny bro, great tutorial
@Poohbify
@Poohbify Жыл бұрын
Did anyone else come across issues inside the parent when on the 'fetching the data' section? It happens when I add async to my component.
@jeremy0x
@jeremy0x Жыл бұрын
If I want to learn something and there's a tutorial by Ed, then I know my tutorial search has ended.
@wellyesbutno5639
@wellyesbutno5639 10 ай бұрын
Fax no printer
@user-pi3bu2lm8o
@user-pi3bu2lm8o Жыл бұрын
1:51 Who do you main in league
@dibendu.s
@dibendu.s 8 ай бұрын
@7:47 - you would have known the prop types that the child component requires if you had declared them in your child component.
@SithLordBishop
@SithLordBishop Жыл бұрын
Should have picked Svelte on step 2 :D
@KrauseLP_
@KrauseLP_ Жыл бұрын
Which VSCode theme are you using?
@zayne-sarutobi
@zayne-sarutobi 11 ай бұрын
Material theme
@Anonymous-cb6by
@Anonymous-cb6by 11 ай бұрын
When I try to make a production I got error
@farwaamir5952
@farwaamir5952 Жыл бұрын
Hello sir i am your big fan from Pakistan good job well done plz tell me book name best for css course
@smile5281
@smile5281 11 ай бұрын
🎉🎉🎉
@itsvatsalrathod
@itsvatsalrathod Жыл бұрын
which theme is this. what's the name of this theme
@farwaamir5952
@farwaamir5952 Жыл бұрын
Watch almost full course web development but Little bit weak some topics tell me book name of your course about web development
@akmalkamarudin2976
@akmalkamarudin2976 10 ай бұрын
I need to know what dark themes are you using. Hope you'd like to share it with us. :)
@CodeOnBlocks
@CodeOnBlocks 10 ай бұрын
Did you find what the name was?
@akmalkamarudin2976
@akmalkamarudin2976 10 ай бұрын
@@CodeOnBlocks So sorry, I'm still looking. Currently I'm using the one dark pro darker. Looking for a similar look as in the video.
@yzdeathxy
@yzdeathxy 7 ай бұрын
​@@akmalkamarudin2976Material Theme
@bennettbmadavana7176
@bennettbmadavana7176 Жыл бұрын
Anyone know which vscode theme he's using?
@zayne-sarutobi
@zayne-sarutobi 11 ай бұрын
Material theme
@holger5851
@holger5851 9 ай бұрын
I think it would be easier to follow without using any framework, just pure React and Typescript. Cheers, H.
@prafuldomde148
@prafuldomde148 Жыл бұрын
Make a video on react 😭
@user-bf7yf7sw7p
@user-bf7yf7sw7p 7 ай бұрын
Great content! But color scheme of vscode could be improved for selections.
@gayashanmadhuranga3375
@gayashanmadhuranga3375 Жыл бұрын
🤗🤗🤗
@dominik1023
@dominik1023 10 ай бұрын
Your knowledge is great, but it's challenging to follow for a Typescript beginner. It would be great if you went slower and also explained what extensions you have. There is a view of certain things in the code, that I guess shows up on hover??? I have no idea what that is or how you are getting it. Lot's of little things that are unexplained and hinder understanding.
@alext8593
@alext8593 Жыл бұрын
I'm probably one of the few that thought this tutorial was kinda all over the place lol
@alexliebhaber3109
@alexliebhaber3109 Жыл бұрын
How do you get anything done with League of Legends installed? - From a former addict 😂
@ndukwesamuel7196
@ndukwesamuel7196 8 ай бұрын
this is not react but next
@damienbutt6320
@damienbutt6320 Жыл бұрын
Why you do dis??? 😂
@sebastianmanco5072
@sebastianmanco5072 Жыл бұрын
🐱‍🐱‍
@EvolutionMachinetoMan
@EvolutionMachinetoMan Жыл бұрын
This guy just killed typescript in 15min lmao. but you missed enums, interfaces and most important differnce between types and interfcaes
@zayne-sarutobi
@zayne-sarutobi 11 ай бұрын
Because those are optional and should only be used when absolutely necessary, for the most part anyways
@md.asifal-mahmud5952
@md.asifal-mahmud5952 Жыл бұрын
I think you are looking more beautiful with beards.
@mma-dost
@mma-dost Жыл бұрын
Hey, Ed please trim your beard man you will look handsome 😜😜
@rp2804
@rp2804 11 ай бұрын
Bro, I know you are busy but learn to keep your hair well done, watch a yt tut or something
@sarmadrafique426
@sarmadrafique426 Жыл бұрын
Hey please Don't abuse while teaching man. That's awful.
TypeScript in React - COMPLETE Tutorial (Crash Course)
53:21
ByteGrad
Рет қаралды 174 М.
LA FINE 😂😂😂 @arnaldomangini
00:26
Giuseppe Barbuto
Рет қаралды 21 МЛН
ФОКУС С ЧИПСАМИ (секрет)
00:44
Masomka
Рет қаралды 4,1 МЛН
Useful Gadget for Smart Parents 🌟
00:29
Meow-some! Reacts
Рет қаралды 8 МЛН
5 Tips and Tricks To Make Your Life With Next js 14 Easier
17:11
developedbyed
Рет қаралды 15 М.
Learn TypeScript Generics In 13 Minutes
12:52
Web Dev Simplified
Рет қаралды 193 М.
You Need React Query Now More Than Ever
11:04
Theo - t3․gg
Рет қаралды 134 М.
This React Drag and Drop Component Is Magic
9:56
developedbyed
Рет қаралды 66 М.
TypeScript Crash Course
52:27
Traversy Media
Рет қаралды 577 М.
Don't be AFRAID of Typescript | A Guide For Beginners
10:26
developedbyed
Рет қаралды 23 М.
Next js Tutorial for Beginners | Nextjs 13 (App Router) with TypeScript
1:02:55
Programming with Mosh
Рет қаралды 475 М.
TypeScript - The Basics
12:01
Fireship
Рет қаралды 1,5 МЛН
Redis Crash Course
27:31
Web Dev Simplified
Рет қаралды 583 М.
State Managers Are Making Your Code Worse In React
13:33
Web Dev Simplified
Рет қаралды 131 М.
All New Atlas | Boston Dynamics
0:40
Boston Dynamics
Рет қаралды 5 МЛН
УШЕЛ С iPHONE 15 PRO MAX НА PIXEL 8 PRO: ЭТО ЖЕСТЬ
32:33
Арсений Петров
Рет қаралды 41 М.
План хакера 🤯 #shorts #фильмы
0:59
BruuHub
Рет қаралды 1 МЛН
Start from 0 at any point on the T1 Digital Tape Measure
0:14
REEKON Tools
Рет қаралды 27 МЛН
С Какой Высоты Разобьётся NOKIA3310 ?!😳
0:43
Распаковка айфона под водой!💦(🎥: @saken_kagarov on IG)
0:20
Взрывная История
Рет қаралды 10 МЛН