React Typescript Tutorial for Beginners

Поделиться
HTML-код
  • Опубликовано: 11 янв 2025

Комментарии • 193

  • @SimPwear84
    @SimPwear84 2 года назад +24

    I have something to tell you. You're a legend and you have helped me become a better Developer. Your tutorials have helped me a lot. Thank you for this series. Stay blessed. Love from Africa

  • @VanPetersonKpoti
    @VanPetersonKpoti 11 месяцев назад +2

    You're a blessing for the developer community.
    I'm running out of words to thank you.

  • @MOJICA7257
    @MOJICA7257 2 года назад +3

    Thanks for your efforts the community appreciated it.

  • @katieholliday6190
    @katieholliday6190 Год назад +3

    I never comment on youtube videos but I just had to say THANK YOU!! I'm learning typescript for a React project and it's been so difficult to find tutorials that use the new syntax without React.FC. You explain everything in such an easy to understand way yet still manage to teach more in 30 mins than a lot of tutorials do in 2 hours. Bravo 👏👍

  • @vyahruthnetcherla4952
    @vyahruthnetcherla4952 2 года назад +24

    Your efforts are amazing. It makes every one of us who wants to learn even more motivational. Thank you so much Dave❤️

  • @alirabiei2344
    @alirabiei2344 2 года назад +3

    holy cow! you did it man, that's amazing I'm super excied for such amazing content.
    I'm sure it'll be THE BEST react typescript series on the internet

  • @adnantariq3346
    @adnantariq3346 10 месяцев назад

    This tutorial might seem a "basic introduction" to the subject of React with using typescript, but it is NOT. It is much more, and thanks to Dave Gray's clear n simple approach, he has made what would be a difficult subject matter to follow, he has made it easy to follow. A BIG thank you! I will certainly look forward to more of your examples to follow.

  • @webdevuaa
    @webdevuaa 2 года назад

    I'm leaving a comment here under this new video instead of the video I'm watching now (MERN stack app tutorial) because I want you to notice this comment. I want to say thank you for what you are doing, now for me you are the best teacher on RUclips. I really wanted to write this, because I understand how hard it is for you to give us such knowledge. Hello from Ukraine!

  • @okonkwo.ify18
    @okonkwo.ify18 2 года назад +1

    Thanks Grey. I have watched tutorials on React Typescript but have been secretly waiting for you to put out one.

  • @GlenGraham
    @GlenGraham 2 года назад +7

    Hey Dave I know there's a super slim chance you'll see this but if you do, could you please, please do a Next.js for beginners -> intermediate video series? I'm literally surviving at my job on your videos alone (specifically the protected routes video). Thank you so much, haven't found another instructor as thorough and concise as you!

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 года назад +1

      Glad I could help! Next.js is requested frequently! I plan on doing something with it early in '23!

    • @lukramingo1496
      @lukramingo1496 2 года назад

      Waiting for nextjs 👍

  • @Trecia_KS
    @Trecia_KS Год назад +1

    Sir, I just discovered your RUclips channel and I've been learning a lot more things effectively!
    I appreciate the time you put into your tutorials! Thank you, Dave :D

  • @GabrielMartinez-ez9ue
    @GabrielMartinez-ez9ue Год назад

    Dude, you have an incredible talent as a teacher.

  • @philippearras8154
    @philippearras8154 2 года назад

    Dude, you have no Idea how many lives you are changing.
    Huge thanks !!!

  • @doobofbattle9472
    @doobofbattle9472 Год назад

    At 17:30, how is prev being used to hold the value? How does prev have any idea of what counts value is? is it like a two way binding? the syntax is so confusing for me coming from C# MVC.

  • @weberneting
    @weberneting Год назад

    Thanks!

  • @synt-x6458
    @synt-x6458 2 года назад +1

    Would be great to see you hit 100k subs by the end of this year! Awesome job as always! Thanks 👍

  • @johnconnor9787
    @johnconnor9787 Год назад

    So great!!! Very, very important topics discussed. No one talks about this. So cool. Thank you!!!

  • @johnychinese
    @johnychinese 2 года назад

    Wow Dave, I didn't think you would even add the react ts tutorial. Thank you sooo mucchhhh. You're literally saving lives with your videos 😊

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 года назад

      You're welcome! Yes, React + TS was always in the plans. The TS series has methodically built up a good foundation of TS fundamentals before merging with React.

  • @dai180293
    @dai180293 2 года назад +1

    The quality of these videos rival paid courses, thank you for all the hard work you put into making these for us, it really helps the community 👍

  • @lopo889
    @lopo889 2 года назад

    Thank you, when i needed ts tutorial, you post it just in time

  • @hasbiassidiki4589
    @hasbiassidiki4589 2 года назад +10

    Great video!🌟
    I hope you'll do redux with typescript refactoring previous MERN Stack 👍👍

  • @noir4356
    @noir4356 2 года назад

    I can't remember if I was one of the people who requested TS/React, but this series chimes in at the right timing 🔥

  • @milkdrom3da
    @milkdrom3da Год назад

    At around 23:23 why does the function need the first generic? `const List = (//blah) ={}`

  • @k303k
    @k303k Год назад

    Very clear explanation Thank u Dave!

  • @regilearn2138
    @regilearn2138 2 года назад

    I Really Appreciate you for this Dave, LOVE YOU DAVE ❤.Please continue this series, with a real world app

  • @kishoreandra
    @kishoreandra 2 года назад

    Wow ... I'm excited 🤩 ... Was awaiting
    Thanks Dave 🙏

  • @fixitman5453
    @fixitman5453 2 года назад

    Right on time. I was just struggling with this today!

  • @robert_k_sam
    @robert_k_sam Год назад

    Thank you Dave. I really appreciate your efforts.

  • @imranisrar1042
    @imranisrar1042 Год назад

    I never comment on youtube videos but I just had to say THANK YOU soo much

  • @annusingh4694
    @annusingh4694 2 года назад

    Very Informative! Thanks Dave.

  • @abdulazeez.98
    @abdulazeez.98 2 года назад

    Awesome video as always.
    Anything typescript is greatly welcomed!
    P.S. it’s a really good idea to have the hooks in one separate video. Will be helpful for reference.

  • @alishmadhukar2177
    @alishmadhukar2177 Год назад

    That children part was absolute magic ..✨✨✨✨✨✨

  • @abov1793
    @abov1793 2 года назад

    your videos are always high quality!

  • @HusamNasrullah
    @HusamNasrullah Год назад

    Dave , love you man , you made life easy! ❤

  • @karansinghnegi9384
    @karansinghnegi9384 2 года назад

    The best tutor on *RUclips*

  • @Reebak018
    @Reebak018 2 года назад

    You are amazing dave!!

  • @Nanashi-rq7lk
    @Nanashi-rq7lk Год назад

    Nice Tutorial. Your content is very good

  • @willyhorizont8672
    @willyhorizont8672 2 года назад

    Im ready for this 🚀🚀🚀

  • @dharmeshgohil9375
    @dharmeshgohil9375 2 года назад

    WOW ,thanks again waiting from long

  • @robiesalken5529
    @robiesalken5529 2 года назад

    Awesome video, as always :)

  • @rezakomanhs767
    @rezakomanhs767 Год назад

    Great tutorial, Thank you!

  • @alahmad430
    @alahmad430 2 года назад +2

    Hi Dave, I wanna ask you something. Is soft delete a thing? I mean compared to hard delete what you recommend to use in small-medium business app?
    or it depends on what business that we run?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 года назад

      Does not seem like a question related to this video? However, info on the topic you are asking about: www.becomebetterprogrammer.com/soft-delete-vs-hard-delete/

    • @alahmad430
      @alahmad430 2 года назад

      @@DaveGrayTeachesCode Hi Dave I've finally found the answer, it is the 3 of them (I said 3 because the last one is Audit) can be work together or combining or support each others, like the soft delete make data temporarily "unaccessed" to common users and the data is still remain in the db for specified time then use the audit from the db to make the analysis, audit etc and once the data is no longer needed we can use the hard or permanent delete data. Have you ever make the app with that requirements? I currently challenge myself to making those app (by learning and apply with your tutorials of course), can you give me suggestion what app that I can make that meet the requirements, Dave?

  • @es7729
    @es7729 2 года назад +1

    Thanks for valuable lessons!
    How long is the playlist going to be?
    Good luck everyone!

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 года назад +1

      This is part of my Typescript series. I just follow the content with no predetermined series length.

    • @es7729
      @es7729 2 года назад

      @@DaveGrayTeachesCode OK! We're ready to implement this knowledge!😁

  • @pikachu5223
    @pikachu5223 2 года назад +1

    We need an advanced React TS tutorial

  • @nirajchandrajoshi
    @nirajchandrajoshi 2 месяца назад

    Very helpful video❤

  • @TravinskiyVladislav
    @TravinskiyVladislav 2 года назад

    Thank you Dave, its on time

  • @danialalfayyadh2524
    @danialalfayyadh2524 9 месяцев назад

    Can you explain to me about intall the snippet ?

  • @snp4636
    @snp4636 2 года назад

    Awesome waiting for this video thanks

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 года назад

      Yes, we built a good foundation in TS leading up to this. 💯

  • @kenhan168
    @kenhan168 Год назад

    very informational, thanks for such a great video!

  • @7doors847
    @7doors847 2 года назад

    Super Dave!!! 🙌

  • @lukem7176
    @lukem7176 12 дней назад

    Hey Dave 😀 What if I have api key protected backend that needs to be accessed from the frontend? How I should store the api key in React? Normally it would be seen from the browser 🙃 Thanks for the course 🙂

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  11 дней назад

      Anything on the frontend can usually be seen. The only thing JS cannot access is a secure httpOnly cookie. If you have to send the API key, that is what I would use. However, you can use a serverless function to set up an API relay. I have a video on that. Likewise, if you start using React server functions, you can keep the key there and never send it to the client.

  • @IramKahkashan
    @IramKahkashan 2 года назад

    Hello Dave, Its amazing series to switch from js to ts, Please tell me one thing how can I compile my tsx code in jsx code in react just like in typescript using -w to view ts code is js in build folder?
    Regards.

  • @sonamohialdin3376
    @sonamohialdin3376 2 года назад

    Awesome tutorial thank you very much

  • @Grishopping
    @Grishopping 2 года назад

    Mil Gracias, Saludo desde Venezuela tu amigo Jose Grillo

  • @johnconnor9787
    @johnconnor9787 Год назад

    24:50 Generic component (important moment)

  • @Salah-YT
    @Salah-YT 2 года назад +1

    thank u so much

  • @danielotienoke
    @danielotienoke 2 года назад

    Hey Dave, Thank you very much for your great work. I'm learning a lot from the videos. Please can you do Vue + Typescript lessons 🙏

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 года назад +1

      You're welcome! I have not published anything about Vue, but I may someday. www.youtube.com/@ProgramWithErik makes Vue his primary focus.

    • @danielotienoke
      @danielotienoke 2 года назад

      @@DaveGrayTeachesCode Awesome! Thank you v much.

  • @hadiqadimi9540
    @hadiqadimi9540 9 месяцев назад

    you are wonderfull man. thank you

  • @TheDoguBati
    @TheDoguBati 2 года назад

    I don't know what to say, Dave. I hope you will get everything you want from life, as you are helping people get what they want

  • @jaisuperawesome
    @jaisuperawesome Год назад

    Can’t I just create span element inside the list? Why do we need a render function?

  • @markopolo2224
    @markopolo2224 2 года назад

    please do more i been struggling to even make a form and get data from it in react

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 года назад

      Might be a good start here: ruclips.net/video/brcHK3P6ChQ/видео.html

  • @Michelle-me6sg
    @Michelle-me6sg 5 месяцев назад

    Thaaaaaaaaaaaaaaaaaaaaannnnnnnnnkkkkkkkkkkkkk YOU FOR THIS!!!!!!!!!!!!!!!!!!!!!!!!!

  • @amanverma7977
    @amanverma7977 Год назад

    Thanks Dave

  • @sohamnesarikar5516
    @sohamnesarikar5516 2 года назад

    Hi dave sir, really thank you for creating such valuable courses 😊. But I want small help, can you create a tutorial for using websockets in react.

  • @eliasvasques80
    @eliasvasques80 Год назад

    Good as always. A question, what extension do you use for the icons in the folders ?

  • @inteliconn995
    @inteliconn995 2 года назад

    Thanks again!

  • @softwareEngineerKunwar
    @softwareEngineerKunwar Год назад

    great guide

  • @haibova_irisha
    @haibova_irisha 2 года назад

    Thank you very much!!! You can do
    Application using Ts, Redux toolkit, react ? Thank you,😊😊

  • @ilan117
    @ilan117 2 года назад

    Dave ❤ thank you such 🙏 As a React Developer I was searching for that only … react and typescript. Would you give us more tutorial on this in specific ? Maybe even challenges of re-creating simple react app into typescript ? I would be so thankful … btw … do you a paid full courses anywhere ?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 года назад +1

      You're welcome! It is my goal to create a paid full course in 2023. More React + TS content is coming and will be added to this Typescript playlist (link in description)

    • @ilan117
      @ilan117 2 года назад

      @@DaveGrayTeachesCode 🙏 don’t forget react please ❤️

    • @ilan117
      @ilan117 2 года назад

      @@DaveGrayTeachesCode will you be announcing the paid course here on RUclips or their is an email list we can subscribe ? I love the way you teach! I have an idea … how about short projects in react and typescript ? That would just awesome 🙏

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 года назад +2

      @@ilan117 sign up for newsletter/announcements: www.getrevue.co/profile/davegrayteachescode and yes, there will be some React + TS projects 💯

  • @rayyanalam4815
    @rayyanalam4815 Год назад

    What is the color theme you are using in vs code?

  • @jamshid5995
    @jamshid5995 2 года назад

    Very Awesome 👍👍

  • @jiauyjiauy3777
    @jiauyjiauy3777 6 месяцев назад

    Is there gonna be part 2?

  • @kim92se64
    @kim92se64 2 года назад

    Yep its a great and very very informative video !!!
    Regard from Pakistan

  • @PrinceVegeta-bj3uq
    @PrinceVegeta-bj3uq 2 месяца назад

    Sir. Plz tell us about which language between js and ts is better? I'm soon gonna learn one of these so plz tell me which one's better

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 месяца назад

      You need to know JS to learn TS.

    • @PrinceVegeta-bj3uq
      @PrinceVegeta-bj3uq 2 месяца назад

      @@DaveGrayTeachesCode okay thanks. I'm watching your cource of css but sometimes i get into some trouble so if i give you my what's app number. Will you help me with some codes?

  • @DiegoBM
    @DiegoBM 2 года назад

    Now I'll need to learn how to manage the anxiety until the next episode releases hehehe, another great video!
    Are you considering teaching Rust at some point in the future? Out of curiosity. It seems to be getting tons of traction and support from all the big actors in the tech scene.

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 года назад +1

      Thank you! I've heard good things about Rust. Not on my immediate list, but there is a good chance I'll eventually get to it.

  • @imam_robani
    @imam_robani 2 года назад

    that's cool !!!
    I hope you can also talk about react native

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 года назад

      Thank you! I may get a chance to cover React Native in the coming year 😀

    • @imam_robani
      @imam_robani 2 года назад

      @@DaveGrayTeachesCode I can't wait for it

  • @snazzybytes602
    @snazzybytes602 2 года назад

    So is VITE basically a better way to create react app skeleton without the extras? (Backend dev inquiring 😄). What is not generated vs createReactApp?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 года назад

      I think once you start using Vite instead of CRA, you won't go back. It's not just that it doesn't create quite as much boilerplate to delete - the main benefit is that it is so much faster. It does things a little differently. Link: vitejs.dev/

  • @saurabhdubey2588
    @saurabhdubey2588 2 года назад

    When should we use interface vs type ?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 года назад +1

      This is a good question! I provided a link to the React Typescript Cheatsheet repo in the description, but here is a link to the specific part of the repo that answers that: github.com/typescript-cheatsheets/react#types-or-interfaces

    • @saurabhdubey2588
      @saurabhdubey2588 2 года назад

      @@DaveGrayTeachesCode That repo is pretty good. Thanks for that

  • @mohammadmahdialvansaz8001
    @mohammadmahdialvansaz8001 2 года назад

    Thank you.

  • @michaelscofield2469
    @michaelscofield2469 2 года назад

    please do more video for react typescript

  • @Jose_911
    @Jose_911 2 года назад

    Excelente. Muchas Gracias .

  • @Rabits52
    @Rabits52 Год назад

    I wish you had a next tutorial without typescript in it I don't know much about typescript and why most of the RUclipsrs have used typescript in their next projects

  • @nouchance
    @nouchance 2 года назад

    DAVE 🔥

  • @elelan
    @elelan 2 года назад

    Thank you

  • @marceugeni
    @marceugeni 2 года назад

    A Ma Zing. Thankyou!

  • @MyALPHAguy
    @MyALPHAguy 2 года назад

    Finally!!!!!!!!!!!

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 года назад +1

      For sure! We built a good foundation of TS leading up to this point. 💯

  • @vincent3542
    @vincent3542 2 года назад

    niceee, really nice

  • @s1dev
    @s1dev 2 года назад

    Awesome dude!!!! so muchhhh!!! are you god?

    • @s1dev
      @s1dev 2 года назад

      1M is not a dream, I can see it coming...

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 года назад

      Just a dev dude in Kansas. Thank you for the kind words! 🙏

  • @justin9494
    @justin9494 Год назад +2

    you lost me at the generic part. I don't know anything about interfaces and generics. Though the first parts were really easy to follow. Thanks!

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Год назад +1

      I do cover generics earlier in the TypeScript series: ruclips.net/p/PL0Zuz27SZ-6NS8GXt5nPrcYpust89zq_b

  • @davithchhung7577
    @davithchhung7577 2 года назад

    I think the reason it keeps autocompleting to different things because the snippet extension you have installed. It was bothering me so much in the past, so i decided to stop using it.

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 года назад +1

      Yes, I'm going to look into this. I enjoy some of the snippets so maybe I can modify it.

    • @davithchhung7577
      @davithchhung7577 2 года назад

      @@DaveGrayTeachesCode It's also a great idea. I am waiting for the solution to next video :)

  • @henokmesfin21
    @henokmesfin21 2 года назад

    we really need it specially MERN with typescript and redux-saga

  • @NeoYu-w8z
    @NeoYu-w8z Год назад

    const List = (props: ListProps) => {
    const { items, render } = props;
    return (
    {items.map((item, i) => (
    {render(item)}
    ))}
    );
    };
    is to prevent compiler thinking it is a jsx tag. I ask chatgpt ...

  • @michalnowak2181
    @michalnowak2181 Год назад

    thx

  • @andTutin
    @andTutin 2 года назад

    i desperately need for lesson 10

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 года назад

      Lesson 10 was the introduction to Vite. Playlist here: ruclips.net/p/PL0Zuz27SZ-6NS8GXt5nPrcYpust89zq_b

  • @twothreeoneoneseventwoonefour5
    @twothreeoneoneseventwoonefour5 2 года назад

    Can you explain better about what is wrong with React.FC? It seems to me that it was "bad in the past" and had implicit children, but however, now it doesn't. So what is wrong then now? Everywhere I look it links to 2019-2020 thread in github which is not the case in React 18 in 2022(close to 2023) where implicit children are now REMOVED. So what is the problem again?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 года назад

      Look at the link in the description for the tutorial references pointing to the React Typescript cheatsheet. It is discussed in more detail there.

    • @twothreeoneoneseventwoonefour5
      @twothreeoneoneseventwoonefour5 2 года назад

      @@DaveGrayTeachesCode I took a look at it and it pointed to the same thread from 2019 which is irrelevant today. In 2022 with React 18 type updates those issues were fixed and it still seems to me that React.FC is fine to use nowadays, just as I said in my initial comment.
      "In most cases it makes very little difference which syntax is used, but you may prefer the more explicit nature of React.FunctionComponent" - quote from that cheatsheet.
      For me I think I better prefer to type elements like
      const App:FC ({some, parameter}) => {}
      ↑Which does NOT have implicit children in React 18 hence I don't see any problem here.
      Or
      const App:FC ({children, some, parameter}) => {}
      ↑When you specifically need children.
      This seems more inline with typescript ideology of explicitly defining types than just implicitly returning JSX.Element.

  • @MusicMan121
    @MusicMan121 Год назад +5

    I hate Typescript SO much. I wish JavaScript introduced native types so I could completely forget about the nightmare this is.

    • @ihatebartz
      @ihatebartz 7 месяцев назад

      I feel you, bro. Typescript does types in such a gimmicky way, even working with Java was easier and more intuitive for me

  • @jkovert
    @jkovert 2 года назад

    I never listen to Tech Twitter. Tech Twitter is nothing but stupid tech in-jokes, none of them even a little funny. A complete waste of time.

  • @cyeg12c
    @cyeg12c 2 года назад

    Thankyou

  • @Pareshbpatel
    @Pareshbpatel Год назад

    {2023-01-29}

  • @codefinity
    @codefinity Год назад

    Thanks!