Learn React Hooks with Typescript

Поділитися
Вставка
  • Опубліковано 20 жов 2024

КОМЕНТАРІ • 95

  • @hojinharry6270
    @hojinharry6270 Рік тому +1

    Loved it. I was looking for this. Documentations were not enough. Thank you

  • @eleah2665
    @eleah2665 Рік тому +4

    Wow! There's a lot going on in this innocent looking 23 minutes. It forced me to wake up and think. Thanks. I'll look forward to the next one. I need all the typescript help I can get.

  • @yuhiahtyun5665
    @yuhiahtyun5665 Рік тому +3

    Road to 100k subs, keep it going Mr.Gray. Thanks for your huge contributes to the community

  • @7doors847
    @7doors847 Рік тому

    We are ‘hooked’ on Dave Gray!!🪝

  • @wiseskeshom4673
    @wiseskeshom4673 Рік тому

    Thank you so much for this informative video, for a beginner who just started to learn Typescript React like me, your channel is so so cool.

  • @3ab9ariclash77
    @3ab9ariclash77 Рік тому +3

    amazing thank you dave

  • @ahmad-murery
    @ahmad-murery Рік тому

    I've been so exhausted recently and I feel like I need to thank you for this refresher,
    100K is getting closer 🚀⭐
    Thanks Dave

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Рік тому +1

      You're welcome, Ahmad! Good to hear from you and thank you for joining me on this journey! 🚀

    • @ahmad-murery
      @ahmad-murery Рік тому

      @@DaveGrayTeachesCode and what a nice journey,
      I hope things will get better soon so I can give something in return (although it seems very unlikely)
      Be sure that I'll watch and like your videos even if you don't see me in the comment section.
      Sincerely yours

  • @islombekdev
    @islombekdev Рік тому +5

    Dave, you are one of the best tutors. Keep it up!

  • @hosamgnaba3205
    @hosamgnaba3205 Рік тому +5

    Great video Dave, I wish I had someone explained react hooks like that to me when I first started, it would have been much easier for me , thank you man
    Remember to keep striving for progress over perfection ..... :)

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Рік тому

      Glad it was helpful!

    • @hanzladev
      @hanzladev Рік тому +1

      one thing you must know, no matter how good teacher you get at time first time learning, you will still learn something new after believing you have master something,
      I value author great efforts,
      you wouldn't have praised him if you haven't watched basic things year before, think of it as required step, even if I learn first time from this video and after year watch new explanation I will get more understanding and I will feel this is much better then from where I learnt earlier.
      its gradual process no one can deny :)

    • @hosamgnaba3205
      @hosamgnaba3205 Рік тому +1

      @@hanzladev Nevertheless, the man is doing really great job for free... and even when i watch things that are really advanced explained by him i still understand every little thing he explaineds

    • @hanzlaahabib
      @hanzlaahabib Рік тому

      @@hosamgnaba3205 from no angle I have said bad about auther, I have huge respect for him because of his efforts
      But my POV was different in above point, I don't you understood that

  • @MrSoquin
    @MrSoquin Рік тому

    Explanations are so clear, I understood everything on the first try!!! Also, it seems that you do not explain what useRef does specificaly but, on the other hand, I have google. Great video!

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Рік тому

      Thank you! useRef video here: ua-cam.com/video/s6UAuFzL308/v-deo.html I think you can search my channel for videos by using my channel homepage, too. 💯

  • @developedbypy
    @developedbypy Рік тому +2

    Please make a next JS course ! & react native one really enjoy learning from this channel.

  • @michaelscofield2469
    @michaelscofield2469 Рік тому +2

    omg, you are the best, what is the next subject of your video?

  • @ravenMK_
    @ravenMK_ Рік тому +1

    Always great content. Remember to keep thriving for progress over perfection.

  • @bobbyboxer2664
    @bobbyboxer2664 Рік тому

    Like 👍🏼 just because of that extension recommendation 🔥 now I’m going to continue watching the video which is already great

  • @SuperShivammm
    @SuperShivammm Рік тому

    Good explanation with typescript in easy way. Thanks

  • @abdulazeez.98
    @abdulazeez.98 Рік тому +1

    Amazing content as always!
    Few days away from 100K 🔥🔥

  • @AmarMishra
    @AmarMishra Рік тому

    Your content is awesome. Such practical examples . I was able to derive a lot of intelligence from it.

  • @World_information5568
    @World_information5568 Рік тому +1

    Dear Sir advance congratulations for 100k . You are very hard working man ❤️❤️😊❤️😊.

  • @okonkwo.ify18
    @okonkwo.ify18 Рік тому

    I already know this . But I still need to get a cup of coffee and enjoy your tutorial on this topic cos I know ama learn new stuff

  • @k303k
    @k303k 11 місяців тому

    Thank u .I can understand it clearly

  • @eduardoviscencio489
    @eduardoviscencio489 Рік тому

    Great way to explain and great extension!
    Do you have any video on the channel explaining in which cases to use type or interface? Thanks

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Рік тому +1

      That's a topic up for debate as both type and interface work. I find myself using interface for classes and type for most everything else.

  • @yustinayasin5539
    @yustinayasin5539 Рік тому

    thanks for the explanation! how about set state of the user inside use effect? i'm struggling to match the type because the data that i want to pass into the state come from an API

  • @digitnomad
    @digitnomad Рік тому

    by far the best illustration, i would like to see if you can mix useReducer, useSelector and useContext all together with above video. that will be complex. I think you can, and this will beat Ng and Vue since they are not even close to what React can do today.

  • @Salah-YT
    @Salah-YT Рік тому +1

    thank u so much

  • @viniciusm.m.7822
    @viniciusm.m.7822 Рік тому +1

    Thanks!!

  • @learn029
    @learn029 Рік тому +1

    You are number one.

  • @shahhussain56
    @shahhussain56 Рік тому

    Amazing video sir. Would you please give me the extension name for highlighting the closing bracket in your video?

  • @sonamohialdin3376
    @sonamohialdin3376 Рік тому

    Amazing tutorial thank you

  • @mohammadjavadaghazadehfard7873

    Hi Dave, Thanks for your great tutorials. Please make more videos, especially advanced examples. Good luck.
    Also, What is the theme of your VSCode in this video?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Рік тому +1

      You're welcome! Here is a short showing my theme: ua-cam.com/users/shortsdp4u1NNFhtE

    • @mohammadjavadaghazadehfard7873
      @mohammadjavadaghazadehfard7873 Рік тому

      @@DaveGrayTeachesCode Thanks. Also, I suggest you try Ayu Mirage Theme. I think it is very good.

  • @philippearras8154
    @philippearras8154 Рік тому

    Thank you !

  • @johnmcaulay4348
    @johnmcaulay4348 Рік тому

    Haha I said you were going to make it to 100k this year...you've got this! :)

  • @iamprincemuel
    @iamprincemuel Рік тому

    Hi Dave. Awesome video and detailed explanation as always. I already know and use Typescript, but I still gained a lot from this tutorial. Please I'd like to know the name of the vscode extension you used to change the case of the useState variables automatically. Thanks

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Рік тому +1

      Thank you! I made a quick short about the VS Code extension you want: ua-cam.com/users/shortszDiJpqVbszk

  • @waltergermanes4528
    @waltergermanes4528 10 місяців тому

    When to use type and interface?, What's their difference? Thanks in advance🙏😊

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  10 місяців тому

      You will find conflicting answers as it comes down to preference. However, I do find using interfaces to be useful when working with classes. Most of the time, I reach for type.

  • @kirakira160
    @kirakira160 Рік тому +1

    Gold man

  • @mhdfirassbarakat6587
    @mhdfirassbarakat6587 Рік тому

    what an effort dave .... thanks to you now I understand typescript but I have a question related to this video, please
    (e: MouseEvent | KeyboardEvent) why did you use this? what is the case that will make me use such a thing
    thanks a lot

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Рік тому

      A button can be clicked with a mouse or pressed with a keyboard. This just provides the event type.

  • @wesleyowen904
    @wesleyowen904 Рік тому

    I really like your videos and I was wondering if you can do a full stack app in flutter?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Рік тому

      Thanks for the request! I have not covered any Flutter here yet. Maybe one day!

  • @michalnowak2181
    @michalnowak2181 Рік тому

    thx

  • @imam_robani
    @imam_robani Рік тому

    Can you explain when to use interfaces and when to use type?

    • @proletar3799
      @proletar3799 Рік тому

      there is depend on what u want in further with ur types, basically u can use both of them at same time.
      but slightly different are when u have two interfaces and wanna to merge them.
      with interface.
      e.g :
      interface IOne {
      name : string
      }
      interface ITwo extends IOne // interface ITwo implementsIOne {}
      {
      age : number
      }
      interface is more or less like a class form.
      with type ;
      type TOne = {
      name : string
      }
      type TMerge = TOne & {age : number} // or u can type with union, intersection ,and so on

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Рік тому +1

      This is a debate that even some of the TS gurus go back and forth on. The React + TS cheatsheet linked in the description addresses this here: github.com/typescript-cheatsheets/react#types-or-interfaces

    • @imam_robani
      @imam_robani Рік тому

      @@proletar3799 thanks bro

    • @imam_robani
      @imam_robani Рік тому

      @@DaveGrayTeachesCode great, thanks

    • @proletar3799
      @proletar3799 Рік тому

      @@imam_robani sama-sama bro, semoga membantu sedikit.

  • @codefinity
    @codefinity Рік тому

    Did he explain why he switches between `type` and `interface`?

  • @mustafaebid3800
    @mustafaebid3800 Рік тому

    Why does automatic subtitles no longer work in videos?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Рік тому +1

      I don't know, but that is frustrating. UA-cam has been making changes, but surely, they would not remove a feature that makes content more accessible. Maybe they are working on something.

    • @mustafaebid3800
      @mustafaebid3800 Рік тому

      Thanks for everything you give us

  • @Web-Himansu
    @Web-Himansu Рік тому

    Sir after i completed you web development course can I get job.

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Рік тому +1

      Keep learning. One course likely won't be enough. In this industry, I am constantly learning. Just keep going.

  • @TravinskiyVladislav
    @TravinskiyVladislav Рік тому

    What i should be say again? Right,
    thank you, Dave

  • @ToniLiem
    @ToniLiem Рік тому

    its just a matter of time before you get more subs and becoming more popular

  • @khitibhusannaik1471
    @khitibhusannaik1471 Рік тому +1

    Strapi starts soon....

  • @daueryuri2569
    @daueryuri2569 Рік тому

    this video are helpful but please use an english basic. at least thx for your good work

  • @michaelsaucedo3952
    @michaelsaucedo3952 Рік тому

    Check out Dave's shorts video on case preserve and camelCase preserve. Thanks for the tip. I always wondered.