React Hooks Course - All React Hooks Explained

Sdílet
Vložit
  • čas přidán 27. 07. 2024
  • In this video I will teach you guys every single core hook from React!
    Code: github.com/machadop1407/react...
    -
    🚀 Learn ReactJS By Building 6 Projects: codedamn.com/learn/reactjs-pr...
    💻 Join our Discord: / discord
    -
    Social
    ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    Linkedin: / machadop1407
    Instagram: / _pedro.machado_
    Github: github.com/machadop1407
    Email: pedro@pedrotech.co
    🌟 Gear / Hardware I Use and Recommend 🌟
    ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    💻 amzn.to/42kqFuM 💻 Monitor
    🖱️amzn.to/3C0ZhHb 🖱️ Mouse
    📷 amzn.to/3OHJvbM 📷 My Camera
    🎤 amzn.to/3oxSthj 🎤 My Microphone
    ⌨️ amzn.to/3oFPpj1 ⌨️ My Microphone
    ⚡ amzn.to/3MYMnzM ⚡ LED Lights In the Background
    Tags:
    - ReactJS Tutorial
    - ReactJS and MySQL
    - NodeJS Tutorial
    - API Tutorial
    Timestamps
    00:00 | Intro
    01:41 | UseState
    15:19 | UseReducer
    27:12 | UseEffect
    38:52 | UseRef
    46:44 | UseLayoutEffect
    52:49 | UseImperativeHandle
    01:01:09 | UseContext
    01:09:29 | UseMemo
    01:18:55 | UseCallback
    #react-hooks #reactjs
  • Věda a technologie

Komentáře • 929

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

    Hey everyone! A lot of you guys are asking what is the extension that autocompletes stuff in this video. The extension I am using is Github Copilot! I just posted a video going over my favourite VSCODE extensions: czcams.com/video/ZPcrEOHpEnU/video.html

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

      which extension he is using for (auto) coding?

    • @tibettenballs4962
      @tibettenballs4962 Před 2 lety +8

      Pedro. Do you think your thingy is smaller than mine??
      Yes or no.

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

      @@vaibhavdhole9117 It's Github's AI Copilot... but it requires joining a waitlist if you want to use it.

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

      how is your copilot so fast on recommending?
      mine takes time

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

      @@tibettenballs4962 bruh wtf lmaoo

  • @depressedorange9088
    @depressedorange9088 Před 3 lety +536

    Hey Bro just wanted to let you know I just won the project of the year and it wouldn’t have been possible without your help. Thanks a lot man. You don’t know much it has impacted me. Keep doing your thing. I’m dropping some Ms for you on my first pay slip. Cheers

    • @PedroTechnologies
      @PedroTechnologies  Před 3 lety +78

      Hey, this is amazing! Im so happy to hear this, you have no idea! Thank you for watching my videos, im really happy to know you were impacted by them :)

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

      which extension he is using for (auto) coding?

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

      @@vaibhavdhole9117 copilot i guess

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

      @DepressedOrange what project did u make bro? Hit me up please 🥺

    • @deveshanandsrivastava6218
      @deveshanandsrivastava6218 Před 2 lety

      @@vaibhavdhole9117 emmet probably

  • @chickaberga2
    @chickaberga2 Před 2 lety +177

    Been learning React for about a month and I can safely say this tutorial was the most helpful out of any other React video I've watched

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

      Wow this makes me very happy! It took me a while to make this video so I am really happy to hear this!

    • @vaibhavdhole9117
      @vaibhavdhole9117 Před 2 lety

      which extension he is using for (auto) coding?

  • @emamarcela354
    @emamarcela354 Před 2 lety +38

    I think I'm finally understanding hooks and how they work. You explain really well. Thank you so much, Pedro!

  • @kramyshan8121
    @kramyshan8121 Před rokem +3

    I have to say something, your tutorial is way better than the documentation itself. You show the details and why everything goes on. To me this channel is definitely the go to place for programmers. Thank you very much and keep it up just like this, bro!

  • @davidnetk
    @davidnetk Před 2 lety +68

    This was exactly the overview of React Hooks I was hoping to find. Thank you, Pedro, you're an excellent teacher.

  • @scchengaiah4904
    @scchengaiah4904 Před 2 lety +18

    Thank you for explaining the concepts in a simplistic manner. The way the content was structured is excellent and easily understandable for beginners.

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

    Pedro man, you are the legend mate. Never did I watch one tutorial that explains everything about React Hooks plainly. I am able to grasp all the hooks all in once. Well done!

  • @andresguerra8580
    @andresguerra8580 Před 11 měsíci +36

    I found this tutorial very useful, however there were a few things worth mentioning that were left out in the video.
    1) useEffect hook is used for handling things outside the scope of React, like manually manipulating the DOM , make an API call, access to localStorage, etc.
    2) useEffect hook is also used to keep different states in sync.
    3) importance of the cleanUp funciton when using useEffect hook, to avoid memory leak on components that are not unmounted by React.
    4) Main problem that useContext solve is to avoid prop drilling, in other words avoid passing props from a parent component to deeply nested components when components in between won't even use these props, if the idea is just to reuse a piece of component we can use custom hooks instead

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

      Thanks a lot for this addition too!!

  • @mabinogi1996
    @mabinogi1996 Před rokem +9

    I recently started as a full time software engineer out of college, and I have been interested in exploring some of my team’s front end stuff (which is using React). I went through several Udemy courses and CZcams videos, but always found myself getting very confused by their explanations. This video was by far the most helpful, and I have now gone from React looking like gibberish magic to having a decent understanding of how it all works! Thanks Pedro!

  • @karnencaldo
    @karnencaldo Před 2 lety +16

    I love the way you explain things, and this is what bring me back to your channel every time I need my React skills updated. I went from 0 programming skills to building my own app exactly the way I wanted thanks to your CRUD tutorial series and I want to say that I am very thankful and will donate to you when I can. You are awesome and don't stop making videos, they are very much needed for people like me. Thank you.

  • @mr_wrath
    @mr_wrath Před 2 dny

    yo bro, in interview they asked me about useReducer hook and i gave the same example you gave here and i explained them in the same way as you. they were impressed and said no one really explained this usereducer like me, all thanks to you.

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

    Great, I was looking for this. I just finished my full-stack course and I need to reinforce my knowledge. Thank you.

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

    You're such a great teacher. I've learn more in your 1 and a half hour video course than a 15 hour course in Udemy.

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

    This is exactly I wanted. Fantastic video, really appreciate your efforts, superb explanation of each hook with real-time examples. Cant thank you enough!!

  • @codingispower1816
    @codingispower1816 Před 8 měsíci

    Pedro, I have a react interview on Monday and I am using your vids to refresh. Thanks for all your content! It's helping me be ready for any curveballs they have for me

  • @ngouendgerard4114
    @ngouendgerard4114 Před rokem +1

    This is one of the most relevant tutorial I find out on React, the muscle of your head détend at your explanations, really, as react is almost confusing at times,you are really a great teacher Bro, you literally pops my esteem. YOUR tutorial is really like a part of a course bought on udemy, or somewhere else. You definitely are doing a great Job.Thank you for your consistency Pedro, it's means a lot for us, just keep going man...

  • @coltanium13
    @coltanium13 Před 3 lety +5

    Fantastic explanations of all the hooks. one of the best react hook video tutorials ive watched. I appreciate how you put bookmarks in your video for easy navigation too.

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

      Thank you so much! This took me a while to record + edit so I am very happy to hear you liked it!

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

    Thank you so much Pedro!! This is such a clear explanation and this made me solve a lot of the issues I was having with my project! Well done and all the best

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

    Pedro, this is an excellent video. I think almost all concepts in computer science are very easy once you understand them. But getting to the point of understanding them can be incredibly difficult. Your explanations and use of examples really simplified the understanding concepts part. I’ll check out your other videos, but really five stars on this one.

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

    Thank you for making this understandable video!! ✨ You're an excellent teacher!

  • @codingtroops9057
    @codingtroops9057 Před rokem

    I want to thank you pedro. I was always worried about the hooks word when ever used in react because on every different forum their are no complete explaination of all hooks in react.
    I have gone through all the hooks you have explained and implemented my own version because of your help.
    Thank you so much and God Bless you.♥

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

    here from NYC, I just finished watching your tutorial , THANK YOU SO MUCH !!!! i won’t lie to you the last 2 hooks were like so complex (not difficult) , however i rewatched them 3 times and i got them PERFECTLY.

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

    Thanks man. These are ultimately the most important things when learning react, you've done great. Thanks again

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

    Wonderful explanation of all hooks along with good examples. Thank you, Pedro!

  • @chiawen.
    @chiawen. Před 2 lety

    This is the clearest explanation about hooks that I have ever seen! It helps me a lot! Thank you soooo much!

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

    this really helps a lot for a dummy like me who is really confused when reading the official documentation of ReactJS, been trying to understanding the hook concept from reading the documentation, but still confused about how to use it practically.

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

    damn, this goes right into my playlist

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

    Hey Perdro, this exaplantion should be in the docmentation of React Js. You are such a great tutor. I really loved the way you explain things, very soomth and clear. Keep going bro!

  • @yehiatech
    @yehiatech Před 2 lety

    Amazing tutorial. Simple and to the point !
    Helped alot. Keep it up !

  • @nstha8848
    @nstha8848 Před 2 lety

    Wow that was some goddamn good explanation! I hope other react learners find this awesome channel soon and learn from you and best wishes to you that you reach 100k subscribers sooner and then a million subscriber anytime sooner! Lots of respect for your guidance man, loved it!! Thanks once again!!! I will comeback here once again after I crack the job as react developer !

  • @nawodmadhuvantha9291
    @nawodmadhuvantha9291 Před 2 lety +8

    Thank you so much. This is a most understandable tutorial about react hooks. I have a simple request. Would you mind, mention the vs code plugin that you used for getting suggestions?

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

    Great work!!!, Thank you for explanation. Keep it up. 👏👏👏✔

  • @mearn_ctaftsman
    @mearn_ctaftsman Před 2 lety

    Just started and not missed a single clip till the end even I know some of the stuff.
    Excellent brother.

  • @goodvibes-io8pk
    @goodvibes-io8pk Před 2 lety +1

    Hey Pedro
    That's an awesome video which I have find on react hooks. It's a gem, very well explained. Was scratching my head while going through official react documents, but this helped a lot.🙂 Thanks man.....

  • @varaprasad4163
    @varaprasad4163 Před 3 lety +3

    Such great content Pedro! Thanks a lot. please make a video on all life-cycle methods. it really helps a lot.

    • @PedroTechnologies
      @PedroTechnologies  Před 3 lety

      I kinda go over the useEffect and useLayoutEffect hooks in this video. But I didn't go in full depth and talked about stuff like cleanup functions and so. I can make a video on it :)

  • @adnantariq3346
    @adnantariq3346 Před rokem +3

    What a brilliant young man you are Pedro! Thank you for helping thousands of us.

  • @westernpigeon
    @westernpigeon Před 2 lety

    dude i’m in the process of becoming a self taught developer and i’ve learned a shit ton from a lot of your videos and i promise, when i land a job i’m gona make a donation to the channel 🙏 the content is too good to be free! keep it up man 👏

  • @krishnakireetimamidi3838

    Great explanation and on point with the topic. I really liked how you covered use cases of every single hook instead of just explaining about the hook. Keep it going !!

  • @Ram-sc6or
    @Ram-sc6or Před rokem +3

    Thank you so much for this video

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

    Great explanation, great refresher, just what I needed. Thanks man

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

    O melhor vídeo sobre Hooks. Brigadão Pedro!

  • @aries3690
    @aries3690 Před rokem

    Thank you so much for explaining so simply using such easy examples! I wasn't understanding why we would ever use the useReducer hook, but you made it so easy with the switch case!

  • @MaximVasilkov
    @MaximVasilkov Před rokem +4

    ~1 hour and you know all the react hooks, perfect job!

    • @VEOdev
      @VEOdev Před rokem

      I watched a 10min videos and know all the react hook, to be honest it is not something to learn in 1.5h that's a long time for such simple thing, best way to learn just watch fast 10min video and start practice with it going back to documentationn

  • @losbopfos5637
    @losbopfos5637 Před 3 lety +7

    That was exactly what I needed.
    Maybe it would be nice if you explain more concepts of React.
    For example whats the difference between function components and class components?

    • @saikiran9185
      @saikiran9185 Před 2 lety

      function component is used when there is no change of props
      class components is used when props data are chages over the time
      this is major difference as i knew

  • @adarshanayak8392
    @adarshanayak8392 Před 2 lety

    This was one of the best videos on react hooks, really informational, to the point, video I have seen on CZcams. 👍

  • @mahtabhossain362
    @mahtabhossain362 Před 3 lety +5

    Pure Gold. Thanks for this outstanding video. Really helped clearing some concepts.

  • @VictorLafargaSetLifeSolutions

    Hello, Pedro very useful and well-explained video. I'd like to know what extension that you are using in vscode that auto-complete when you type. Thank you!

  • @rupak4roy
    @rupak4roy Před 2 lety

    This is just great video, I was looking something like this for long time. Very crisp examples we use on day to day work. Thanks for this video.

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

    Thanks so much for this all-in-one video !! I can tell how much time you had to spend making it. Thank you !!

  • @am6930
    @am6930 Před 3 lety +16

    Hi bro .iam from India

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

    never stop with your tutorials man, youre awesome!

  • @DaveSmith-fu2ty
    @DaveSmith-fu2ty Před 6 měsíci

    This is an excellent video. At first I was feeling hesitant about watching an hour and 38 minute video, but it flowed well and felt like 30 minutes. Great info and great examples. I am still a little lost on the useImperativeHandle portion, but I am sure that watching it again will fill in those gaps. Keep making videos and also become a professor. The students need you!

  • @frankfervela7897
    @frankfervela7897 Před 2 lety

    Amazing freaking video, thank you so much. Ive been developing react apps without knowing half of this stuff. Golden video Pedro. Much appreciated

  • @succeeder3044
    @succeeder3044 Před 2 lety

    wow, i understand everything about hooks in just one short video.
    Kudos to you 💪🏻

  • @needcode
    @needcode Před 2 lety

    The best 86 minutes I have spent in my life. thank you!

  • @developertools95
    @developertools95 Před 3 měsíci +1

    found this tutorial very useful, however there were a few things worth mentioning that were left out in the video.
    1) useEffect hook is used for handling things outside the scope of React, like manually manipulating the DOM , make an API call, access to localStorage, etc.
    2) useEffect hook is also used to keep different states in sync.
    3) importance of the cleanUp funciton when using useEffect hook, to avoid memory leak on components that are not unmounted by React.
    4) Main problem that useContext solve is to avoid prop drilling, in other words avoid passing props from a parent component to deeply nested components when components in between won't even use these props, if the idea is just to reuse a piece of component we can use custom hooks instead

  • @normanklein3155
    @normanklein3155 Před 2 lety

    Glad to see that you received over 300K views as its well deserved for your high quality courses

  • @toufonglee5073
    @toufonglee5073 Před 2 lety

    I'm pretty decent in React. I would like to say, you make it so easy to understand!! Great job.

  • @shahidullahmuffakir668

    Your explanation is so simple and easy to understand.
    after going through Udemy course and other CZcams videos , my doubts were not clear , because most of the teachers are using complex language or making a very sample topic complicated but yours was the opposite.
    Thanks a lot brother.
    I am gonna follow you for future...
    Keep share your knowledge with us.

  • @nditahsamweld346
    @nditahsamweld346 Před rokem

    Very profound, yet comprehensive overview of React Hook. Kudos @PedroTech 👏👏👏👏👏

  • @LesFPinter
    @LesFPinter Před 2 lety

    Finally! Exatamente o que precisava. I've been struggling with hooks for months, and your tutorial is simple, complete and straight to the point! Parabens!

  • @moarifur
    @moarifur Před rokem

    This is the only video out there which can teach me react hook!!!
    I don't know how to thank you brother so a big hug and thanks to 'PedroTech'.

  • @Sat-7
    @Sat-7 Před 2 lety

    Your Effort will definitely be a part of so many Dev's knowledge.
    Thumb's up Pedro.
    Pretty straight forward.
    Thank you from 🇮🇳.

  • @benniegamali3622
    @benniegamali3622 Před rokem

    Thank you so much for this explanation. Compairing the way I'm used to doing it to how to use the useState hook made it so much easier to understand! You're the best!

  • @xFlamarangx
    @xFlamarangx Před 2 lety

    FANTASTIC video. I was able to follow along and make my own examples as I went. Thanks for putting this together, you earned a sub from me!

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

    This is some thing nexr level, mate. More power to you !
    Please keep uploading such amazing tutorials

  • @joelnicholas7194
    @joelnicholas7194 Před 2 lety

    Thank you Pedro. You are a gifted teacher and engineer!

  • @akbar.n
    @akbar.n Před 2 lety

    Thanks, Brother. The video was explained very well. The important part was that now we know there are at least these types of hoods and how it works. It will be very helpful to use them in projects.

  • @abeercodes
    @abeercodes Před 2 lety

    the passion you have for coding is noticeable. You really inspire me

  • @luisacavalcanti3665
    @luisacavalcanti3665 Před rokem

    This is one of the best videos I have seen about hook. Congrats!

  • @onedaytimewin
    @onedaytimewin Před 2 lety

    Your explanations are so frickin clean and effective. Thank you!

  • @aryamitrachaudhuri6564

    Thank you very much Pedro! You literally made it very simple to understand for any beginner. 😍🎉

  • @sachinmore8938
    @sachinmore8938 Před rokem

    Very well simplified and easily explained the difference between all types of Hooks! Thanks!

  • @rakshitgupta605
    @rakshitgupta605 Před 2 lety

    This is indeed the best hooks tutorial on youtube.

  • @drivebuss8079
    @drivebuss8079 Před rokem

    I fkin paid more than 50 bucks to learn the same stuff on udemy, yet did not understand the concept of some hooks. Here this video is free and things clearly explained. Thanks you

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

    The best course that I am done to understand Hooks. Thank you!

  • @bhushi5764
    @bhushi5764 Před 2 lety

    Very well explained!! This Hooks explanation hooked into my brain seamlessly. Thanks man!!

  • @DanielOliveiraCarvallho
    @DanielOliveiraCarvallho Před rokem +1

    Very clear, and nice. Good job!

  • @arcosd63
    @arcosd63 Před 2 lety

    This is really cool, very well done, Pedro! Thank you!

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

    Nicely done, Pedro, thanks for putting this together! Subscribed!

  • @jingli9232
    @jingli9232 Před 2 lety

    thanks, I checked around a lot of videos, only your explanation about useReducer is super clear

  • @kareemmoro2935
    @kareemmoro2935 Před 2 lety

    Thank you so much for this tutorial, Pedro!
    this was an amazing explanation

  • @user-sn1rc5ye5k
    @user-sn1rc5ye5k Před 2 lety +1

    I hope more people will be able to see the work you are doing! Great job! Keep going bro!

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

    Thanks for the great content!, I watched till the end and no wonder its the best video on hooks in react. And your teaching is too simple and it worth every second of the video to watch. Superb!

  • @hardwired89
    @hardwired89 Před 3 lety

    thank you pedro for the lesson ❤️

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

    Thank you for your tutorial, I was so confused with hooks before your tutorial, now I understand.

  • @alimneini
    @alimneini Před 2 lety

    Fully documented and clear! thanks

  • @triptorome6356
    @triptorome6356 Před 2 lety

    Great course! All well explained, no bs

  • @FiveFourThor
    @FiveFourThor Před 2 lety

    Awesome video! Thanks for making this - I'm sure it took a good amount of time!

  • @pablorodriguezperez992

    Amazing video. Really good explanations and not that long given the amount of concepts explained

  • @pierrebertin4364
    @pierrebertin4364 Před 2 lety

    Very high quality content and useful. Thanks a lot for this PedroTech!

  • @andressarodrigues4558
    @andressarodrigues4558 Před 8 měsíci

    Pedro, cara, vc salvou minha vida! Muito bom!

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

    I haven't finished the video yet, but just for the useReducer hook explanation I already love it, man! Thanks a lot!!!

  • @sakshi-ok8zu
    @sakshi-ok8zu Před rokem

    Thanks a lot for putting this much effort in making such a quality content. Thoroughly enjoyed the video and learnt a lot from it.

  • @kazno4273
    @kazno4273 Před 2 lety

    The best tutorial vid I've seen so far

  • @ifeoluwafaromika8968
    @ifeoluwafaromika8968 Před 2 lety

    Thank you so much for this excellent react hooks guide!

  • @sylvesterdemouser6722

    Nice work. Thank you, PedroTech! :)

  • @nwachukwuakachiprince3504

    Honestly, this worth subscribing for. Thank you once again

  • @Jawad_Siddiqui
    @Jawad_Siddiqui Před 2 lety

    Thanks Pedro...Really enjoyed the hooks series