TypeScript Course In ReactJS - TypeScript

Sdílet
Vložit
  • čas přidán 14. 06. 2024
  • In this video I will go over everything I thing a beginner should learn on how to use Typescript in React.
    -
    ❤️ Want to Support the Channel?:
    / @pedrotechnologies
    🚀 Learn ReactJS By Building 6 Projects: codedamn.com/learn/reactjs-pr...
    -
    Social
    ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    Website: machadopedro.com
    Linkedin: / machadop1407
    Instagram: / _pedro.machado_
    Github: github.com/machadop1407
    Email: machadop1407@gmail.com
    Tags:
    - ReactJS Tutorial
    - ReactJS and MySQL
    - NodeJS Tutorial
    - API Tutorial
    Timestamps
    00:00 | Setup Typescript in React
    10:05 | Components / Props / Interfaces
    20:17 | UseState in Typescript
    25:45 | Enums / Types
    32:49 | Context API Typescript
    37:42 | What to do when you panic?
    40:25 | Folder Structure
  • Věda a technologie

Komentáře • 152

  • @muaazosaid1418
    @muaazosaid1418 Před 2 lety +82

    I was learning typescript. And was thinking now i have to find a tutorial for typescript with reactjs. But this man reads our mind. He said no problem i have read your mind here comes the video. Just superb quality content 💓

    • @PedroTechnologies
      @PedroTechnologies  Před 2 lety +7

      Hahaha happy to hear this!

    • @Danstrom9252
      @Danstrom9252 Před rokem

      Just what I was thinking and thankfully CZcams algorithm suggested me PedroTech again

  • @gtsif7113
    @gtsif7113 Před 2 lety +1

    Straight forward Tutorial. I just love it. Thank you Pedro for accelerating my learning curve with this video

  • @shahidrizwan6903
    @shahidrizwan6903 Před 2 lety +11

    Dude, I was learning typescript and all of a sudden this video pops up on my favourite youtube channel🤯

  • @wendylee5498
    @wendylee5498 Před 2 lety +4

    Great tutorial to cover all the basics!! Now I can understand the type declarations and those react code written in typescript looks less intimidating.

  • @nable0306
    @nable0306 Před rokem +1

    21 minute into the video and i can say that it is a very good tutorial. I'm learning this to implement on my next app to put in my portfolio. Hiring process is tough right now. Who else is in the process of making a large app just to land a job???

  • @levyroth
    @levyroth Před 2 lety +10

    The best tutorials for any aspiring software engineers and web developers.

  • @mabrarhassan
    @mabrarhassan Před rokem

    That was an easy flow in learning through your video. My knowledge has increased. Specially I loved it when you organized the code into files.

  • @joeellul-turner1280
    @joeellul-turner1280 Před 2 lety +2

    Honestly the best tutorial for typescript. Thank you!

  • @ts8960
    @ts8960 Před rokem

    this is one of ur better tutorials, unlike other utubers u actually show the proper way to write props and show us how to work with enums and types which was useful to me, thx

  • @mandalorian99
    @mandalorian99 Před 2 lety +1

    Pedro, love your channel, you're explaining very well! I'm practicing Typescript in React, very helpful resource!

  • @aqeelah369
    @aqeelah369 Před rokem

    Great tutorial that covers all the basics in a very simple and forward way Thank you!! looking for more

  • @Diegopie115
    @Diegopie115 Před rokem

    Trying to refactor a project into TypeScript and this hit all the points with speed, thank you!

  • @matt_fonto
    @matt_fonto Před rokem

    Congratulations on the tutorial, Pedro! És um grande 😀
    Continue com o bom trabalho, vai chegar muito longe. Sucesso em sua caminhada.

  • @faris.abuali
    @faris.abuali Před 2 lety +1

    Thanks Pedro!
    Simple & Informative

  • @k303k
    @k303k Před 7 měsíci

    Thanks a lot for the video Pedro!!! Waiting for more Typescript projects from you!

  • @ogheneminesmart8680
    @ogheneminesmart8680 Před 11 měsíci +1

    Your literally the best person to learn from on CZcams, You simplify concepts so easily, that one can watch u and start coding immediately, the simplicity of ur teachings is what i find outstanding, simple but effective code .. keep it up ❤❤❤

  • @Raxxman
    @Raxxman Před rokem

    very clear description of the difference between typescipt and raw JS in constructing REACT components.

  • @vitorhugo9799
    @vitorhugo9799 Před 2 lety +6

    Eu gostaria de agradecer imensamente pelo conteúdo que você produz, sua didática é muito boa e vai direto ao ponto em seus vídeos. Continue contribuindo assim que você vai longe

  • @xoxo
    @xoxo Před rokem

    Thank you! This course helped me a lot. I can't wait to watch other React videos of you Thank you so much 👍😍

  • @retrun813
    @retrun813 Před rokem

    Very well explained! Thanks!

  • @bastienv6233
    @bastienv6233 Před rokem

    So simple. I learned so much just watching you

  • @zidaneorangindonesia9675

    Dude your tutorial are the best

  • @bendev6640
    @bendev6640 Před 2 lety

    Thank you pedro , cant wait for a tutorial of react using leaflet !

  • @stefanocons
    @stefanocons Před rokem

    Thank you for this great tutorial!

  • @marianapontes6191
    @marianapontes6191 Před rokem +1

    This video is amazing! Great explanation!

  • @tanayasharma7776
    @tanayasharma7776 Před rokem

    Thanks pedro this was of great help

  • @lavanyaraman7999
    @lavanyaraman7999 Před rokem

    smooth transition from js to ts. Awesome content 👌

  • @BobbyBundlez
    @BobbyBundlez Před 2 lety

    this guy's videos are just insanely good man

  • @emilbotev9182
    @emilbotev9182 Před rokem

    Hey. Pedro,
    Thanks so much for this video. You brought a lot of light in the dark tunnel :D.
    Muchas gracias, amigo!

  • @matissjudins6272
    @matissjudins6272 Před rokem

    great vid man, as allways.

  • @ashankarunaratne3424
    @ashankarunaratne3424 Před rokem

    Love the way you teach

  • @monicabusatta1338
    @monicabusatta1338 Před 2 lety +3

    Foi quando falou o nome que eu percebi que era br hahaha pronúncia perfeita e video mais perfeito ainda! Muito obrigada!!!

  • @ThColinPereira
    @ThColinPereira Před 2 lety +1

    Absolute BANGER

  • @rhiannonmonks6894
    @rhiannonmonks6894 Před rokem

    Thank you so much, this is a wonderful tutorial

  • @kinzangdorji43
    @kinzangdorji43 Před rokem

    Great Tutorial. It was helpful.

  • @minsungsuh3872
    @minsungsuh3872 Před rokem

    Thank you for this useful video!

  • @CarolinaNT
    @CarolinaNT Před 2 lety

    pedro eu te amo AAAAAA obrigada

  • @hsiang-yehhwang2625
    @hsiang-yehhwang2625 Před rokem +1

    It is a GREAT tutorial!!!!!!! Thanks for sharing

  • @robmorris5732
    @robmorris5732 Před 2 lety +1

    Really cool and informative video. It would be great to see you code a small application using typescript with hooks and some data fetching 😁

  • @tofiqhuseynli1958
    @tofiqhuseynli1958 Před 28 dny

    Incredible useful, thanks.

  • @NarcisMM
    @NarcisMM Před 2 lety

    Good primer, thanks!

  • @krambow1509
    @krambow1509 Před rokem

    Caraca, fiquei surpreso quando vi que tu é brasileiro. Parabéns, está nos representando muito bem em meio ao conteúdo em inglês, obrigado!

  • @rahul52540
    @rahul52540 Před 2 lety +1

    Wow Amazing just what it is I am looking for..

  • @emiremark2889
    @emiremark2889 Před rokem

    great video, I followed it and did the code at the same time. thank you

  • @user-oy4kf5wr8l
    @user-oy4kf5wr8l Před 2 lety

    Thanks buddy ! u r amazing !

  • @indpriderdx5174
    @indpriderdx5174 Před rokem

    nice tutorial i really love ur all videos..

  • @user-ke9jo8dk2s
    @user-ke9jo8dk2s Před rokem

    Great job!!!

  • @khasrokhello248
    @khasrokhello248 Před rokem

    Just Amazing , super Content

  • @rahulpoddar7633
    @rahulpoddar7633 Před 2 lety +1

    Thanks Pedro...your tutorials are excellent. This tutorial on TS is very good and a very good starter for any new dev. Do you have any tutorial which shows as how to separate the modules in reactjs (typescript based) where I have a core module which is developed and compiled separately and other child modules which is developed and packaged separately but depending on needs I should be able to use the child modules at runtime (no dependencies at compile time or runtime)

  • @DivineUwandu
    @DivineUwandu Před rokem +1

    yes thank you for your video

  • @ayushdedhia25
    @ayushdedhia25 Před 2 lety +1

    Very Useful Tutorial... Thanx man! 🙏😀

  • @gaoqiangzhou9960
    @gaoqiangzhou9960 Před rokem

    the very best video!

  • @zvie
    @zvie Před 2 lety +1

    Thanks soo much Pedro

  • @amanshukla5086
    @amanshukla5086 Před 2 lety

    Really good and informative tutorial

  • @zhipingfoong6148
    @zhipingfoong6148 Před 2 lety +2

    bro you are insane!I feel like i become a typescript master after watching your video

  • @carlosphilips9879
    @carlosphilips9879 Před 11 měsíci

    Damn you earned a sub great teacher

  • @alexg7282
    @alexg7282 Před rokem

    Great thanks a lot !

  • @Dave90425
    @Dave90425 Před rokem

    Great Video!

  • @leonardodayrell2976
    @leonardodayrell2976 Před 2 lety

    Typescript is amazing! Thank you pedro

  • @tomasburian6550
    @tomasburian6550 Před 2 lety +5

    This video is amazing. In a short time we get all we need to get started.
    Would you consider maybe making some more advanced tutorial on some larger project like eshop or something that requires communicating with an API for login and perhaps even use some other modules like Redux? I'd appreciate that a lot.
    Keep up the good work!

  • @Davi-wv8mi
    @Davi-wv8mi Před 2 lety +1

    Muito bom Pedro.

  • @hardikzalavadiya4214
    @hardikzalavadiya4214 Před rokem

    This video is really really useful for beginners who want to learn basic typescript concept.
    every movement is useful overall I'm giving your Five star ⭐ rating as a learner.
    Thank you so much for sharing your knowledge with other people.

  • @boburmirzomuhibullaev3081

    very well explained video!! thank you. Could you make more videos about typescript? it would be very useful if you make the whole project with typescript!!!!!!

  • @lokmanlife3023
    @lokmanlife3023 Před 2 lety +1

    thanks for this amazing video.. love it..

  • @attahamamah5128
    @attahamamah5128 Před rokem +1

    u r the best

  • @ayabc4320
    @ayabc4320 Před 2 lety +1

    Thanks!

  • @sonjiaasana
    @sonjiaasana Před rokem +1

    Oh wow dude, I have a technical test for a job interview that relies on TypeScript and createContext, while I've only worked with React/Redux so far, this is exactly what I needed to be able to do it, thank you so much

    • @brevianwafula1880
      @brevianwafula1880 Před rokem

      did you secure the job after the interview?

    • @sonjiaasana
      @sonjiaasana Před rokem +1

      ​@@brevianwafula1880 Well I got shortlisted, at first they went with the other candidate as he was more experienced, but after a month they got rid of him and called me back to offer me the job. In the meantime I had had another offer in a different company and I took it. I'll need Angular in this new job, which relies on TypeScript as well, so all the skills I got from Pedro will be super useful as well. I'm starting next week and I am crippled with impostor syndrome at the moment (first developer job ever!), please wish me luck!!

    • @brevianwafula1880
      @brevianwafula1880 Před rokem

      @@sonjiaasana ooh my God!,this is great! I wish you all the best .we can reach out maybe if you okay with that

  • @shineLouisShine
    @shineLouisShine Před 5 měsíci

    Very good video.
    The fact that you prefer using "interface" over "type" is quite surprising..
    Also, I was looking for Typescript with React Hooks.. Especially considering the fact that you said that you really love TS.. couldn't find those though..
    Thanks anyway.

  • @shivshankar654
    @shivshankar654 Před 2 lety

    Ur video was helpful, please do crud with typescript and context

  • @maxvhanamane840
    @maxvhanamane840 Před rokem +1

    And there is one more thing
    If you create a functional component using a traditional method like this
    import {FC} from 'react';
    export interface PersonProps{
    }
    // Here you can't use FC on a function.
    export function Person(props: PersonProps) {
    return (



    );
    }
    In order to use FC type provided by react you have to the use Arrow function.
    import {FC} from 'react';
    interface PersonProps {
    name:string,
    email?:string,
    age:number,
    }
    export const Person:FC= ({name,age}) =>{
    return (


    {name}
    {age}


    );
    }

  • @sonamohialdin3376
    @sonamohialdin3376 Před rokem

    So good tutorial

  • @bananabread6758
    @bananabread6758 Před 7 měsíci +1

    can you make 1-2 typescript projects for beginners? thanks for the video!

  • @safariehsan
    @safariehsan Před 2 lety

    Perfect Course :)

  • @pawelczar
    @pawelczar Před rokem +2

    just bear in mind guys this tutorial is year old and using FC is not recommended anymore. Other than that great tutorial and love way you explain things. Thanks for what you do

    • @atrasshalhan
      @atrasshalhan Před rokem

      is it better to do with class component ?

  • @ahmedmedhat9896
    @ahmedmedhat9896 Před 2 lety +2

    Amazing content as always!
    I wonder what extensions you use to allow emmet on jsx and tsx files
    I would also love to use your vs theme but I don’t know which one it is

  • @d13cnpm1_nguyenphuongnam8

    Very clear content

  • @justin9494
    @justin9494 Před rokem

    thank you

  • @hassanad94
    @hassanad94 Před rokem

    Bro, Thank you. :) I have a new job. ( Medior React developer ) and the company is using typescript. I've been watch many tutorials. But finally i understand the concepts of typescript. ( Thanks to many tuto and the effort ).

  • @abhaytiwari6411
    @abhaytiwari6411 Před 2 lety +1

    Excellent video 👏

  • @JJ-ot3ps
    @JJ-ot3ps Před rokem

    nice video, sometimes i saw code like this: import NextLink, { LinkProps as NextLinkProps } from 'next/link' is this also typescript?

  • @perezident14
    @perezident14 Před 2 lety +6

    Dude, thank you so much for this. I am still trying to land my first job in tech after attending a bootcamp. I applied to a job that is using a JS stack with React/Redux/TypeScript and Node, but I never learned TypeScript so I am trying to cram it for this take home assessment. LOL.

    • @PedroTechnologies
      @PedroTechnologies  Před 2 lety

      Hahaha I always advice learning TS cause it is very important for jobs! Don't worry you will get it!

    • @jackfrost8969
      @jackfrost8969 Před 2 lety +1

      kinda similar story. I already got the internship and now they asked me to learn typescript and testing library for the work.

  • @besmirgjata8322
    @besmirgjata8322 Před 2 lety

    well explained

  • @Pareshbpatel
    @Pareshbpatel Před rokem

    An excellent introduction to using TypeScript with React. Thanks, Pedro.
    {2023-04-13}

  • @gangasagargone7493
    @gangasagargone7493 Před rokem

    which extension that will give the suggestions like this is the type of any like that

  • @manoj-k
    @manoj-k Před 2 lety

    🔥🔥🔥

  • @muhammadidrees6650
    @muhammadidrees6650 Před 2 lety +1

    Thanks bro :)

  • @OfficialAdamRoss
    @OfficialAdamRoss Před 2 lety +1

    Another great tutorial, I got stuck on the last one trying to make a CRUD app and can't figure where I went wrong.

    • @PedroTechnologies
      @PedroTechnologies  Před 2 lety

      Sorry to hear that! Where did you get stuck?

    • @connorrevenge8864
      @connorrevenge8864 Před 2 lety

      @@PedroTechnologies The tutorials were really good, but I got stuck on episode 4 of the Full Stack course - I made a post on Stackoverflow about it here stackoverflow.com/questions/68444689/cant-perform-post-function-to-sql-db-using-formik?

  • @shaheerarain50
    @shaheerarain50 Před rokem

    please make a tutorial on, how to insert image in react using typescript please

  • @majdaleid6648
    @majdaleid6648 Před měsícem

    Thank you very much.can you please provide the code examples ? So i can use it as a resource if i forget something .many thanks again for your videos :)

  • @RavindraSingh-lp9pl
    @RavindraSingh-lp9pl Před rokem

    @pEDROtECH Please make complete TypeScript React Series.

  • @KmeOst
    @KmeOst Před 2 lety +1

    Gracias (:

  • @youcan4149
    @youcan4149 Před 2 měsíci

    What type to add if i have array of objects ?

  • @matissjudins6272
    @matissjudins6272 Před rokem

    got any videos on Vite and TS?

  • @nikolam-dev
    @nikolam-dev Před 2 lety +2

    Buenardo

  • @albedobond3827
    @albedobond3827 Před 2 lety

    Thank you so much! But enum's terrible thing for props haha Users easily can put the literally pure string or numbers which we don't expect

  • @Holfter
    @Holfter Před 2 lety +1

    Valeu!

    • @PedroTechnologies
      @PedroTechnologies  Před 2 lety +1

      Obrigado pelo apoio!

    • @Holfter
      @Holfter Před 2 lety

      @@PedroTechnologies eu que agradeço, seu canal vai ser gigante ainda, pode printar

  • @user-ku2fy9rx8r
    @user-ku2fy9rx8r Před 2 lety

    Can you make a firebase auth video?

  • @juguetestoys1137
    @juguetestoys1137 Před rokem

    E Aí, Beleza? muito bom, mas você perdeu de mostrar no navegador, o exemplo com type (nameForType) e também o exemplo com contextValue (como usar AppContext value en Person.tsx?)

  • @__Gojo___
    @__Gojo___ Před 2 lety

    i face the problem api data destructure prop with typescript please bring a tutorial on it

  • @jordantanaliga8175
    @jordantanaliga8175 Před rokem

    So this are all the use case of typescript in React ?