Why React Hooks?

Sdílet
Vložit
  • čas přidán 25. 08. 2024

Komentáře • 273

  • @IPIgorPieruccini
    @IPIgorPieruccini Před 4 lety +122

    I was paying attention to every single detail until Rafiki "throw-away" Simba, then I totally lost my track.
    Although I manage to watch the entire video and is explained incredibly well. Excellent!

    • @andyengle
      @andyengle Před 4 lety +5

      Haha same here. I rewinded, closed my eyes and listened. A little more clear doing it that way, I found.

    • @rauldeandrade
      @rauldeandrade Před 4 lety

      @@andyengle same here

    • @compedium
      @compedium Před 4 lety +4

      same, gifs distract sometimes.

    • @leeopperman1783
      @leeopperman1783 Před 3 lety

      I was going to come here to say the exact same thing, that part really distracted me. I eventually just closed my eyes.

    • @byjackli
      @byjackli Před 3 lety

      and the crowd goes wild !!!

  • @matteogilardoni1455
    @matteogilardoni1455 Před 5 lety +110

    This video is explained incredibly well

  • @roberthinckley7508
    @roberthinckley7508 Před 4 lety +50

    I love the way that you explain things. Most tutorials I've seen just show how to implement the code step by step (for total beginners), but your tutorials explain the reasoning behind it. Way more concise and valuable. Sad there's not more free content shared on CZcams though....

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

      agreed, this is amazing. It gives the context,history, and 'why' before just diving into code. I got more out of these 15 minutes than I have in any other tutorial.

  • @Lambdaphile
    @Lambdaphile Před 4 lety +19

    I don't think I've seen anyone else in the JS community explaining things in this level of clarity :)

  • @arnulfoloredo1079
    @arnulfoloredo1079 Před 4 lety +6

    Nice. I tried to learn React almost 3 years ago, and now 2 weeks ago I started again; in these weeks I've been doing a project, and came across these two paradigms and didn't understand the difference between them. Plus I barely remembered the createClass paradigm. This video explains very well what is a Class component and a function component. But now I have a project with some Class components and some function components. At least now I know what I have to refactor. Thanks for this cool video.

  • @cli23
    @cli23 Před 4 lety +7

    Love this - especially the first chunk that explains the "why?". I never really felt the need to start using hooks until now :)

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

    Bruh thank god for this video. This primer along with Ben Awad's technical hooks walkthrough has a young man feeling educated AF out here.

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

    This guy is so good at explaining things, one of the best teachers hands down! I will enroll in your course now!

  • @Deepakkumar431
    @Deepakkumar431 Před 3 lety +4

    This is the first video I see which explains the real benefits of hooks instead of just saying "we can use states inside a functional component."

    • @uidotdev
      @uidotdev  Před 3 lety

      Glad you enjoyed it!

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

      For real. For months I’ve been trying to find a reason, a real world problem that React Hooks solves and this video is the first example I’ve come across.

  • @bojanadrangova7189
    @bojanadrangova7189 Před 4 lety +4

    This is one of the well rounded explanation on hooks (and why are they great) I've seen. It was so short but so well put together. Bravo. Getting a subscriber.

  • @caoimghgin
    @caoimghgin Před 4 lety +3

    I simply could not wrap my head around this. Now, I 'get it'. Thanks for doing this. A life saver!

  • @SBDavin
    @SBDavin Před 4 lety +86

    I can't wait until they change how to create components and relearn React (again).

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

    Teaching a workshop tomorrow, and this is such a powerful refresher on the history or how React components have been written over time. Awesome stuff Tyler!

    • @uidotdev
      @uidotdev  Před 5 lety

      You're welcome! Good luck with the workshop!

  • @EvilTim1911
    @EvilTim1911 Před 4 lety +4

    I'm returning to the React world after working with Angular for a while and hooks were an unfamiliar topic for me because class-based components, lifecycle methods and setState() were the norm when I was still using React. This video was just what I needed to get up and running again because I'm exactly the type of guy who asks "but why do I need this though?". Great stuff

    • @uidotdev
      @uidotdev  Před 4 lety +1

      Glad it was helpful! Welcome back to React land.

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

    Excellent introduction. I'm studying React but I never really got a clear understanding of what's so special about Hooks (being someone that never had to deal with classes and the problems that you mentioned in your video). So I started looking around for specific examples / comparisons of how a React hook improves the current code, and this is the only video I found that focuses on this exact topic. Thanks for clearing it up for me!

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

    This video made me change my mind about functional components. I guess I will stick to functional components from now on.
    Thanks for such a great explanation

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

    Thank you so much, I've been thinking about this all day and this has answered all my questions.

  • @uidotdev
    @uidotdev  Před 5 lety +6

    👋 Hi. I hope you liked this video. If you didn't, well, that's unfortunate.
    Anyway, you should checkout Bytes - it's our take at a fun, educational, and entertaining JavaScript newsletter. Now, I know what you're thinking - "newsletters suck". And you're right, usually - but Bytes is different.
    With over 80,000 subscribers and a 50% weekly open rate, devs really love it. If you don't believe me, check out these Tweets - twitter.com/uidotdev/timelines/1428028877129936899
    OK I'm done. You can sign up here (it's free) - bytes.dev?s=youtube

  • @carlosreis9775
    @carlosreis9775 Před rokem

    Thank you so much!! The history of where these changes come from is very important, and one of the best videos so far in react.

  • @johnm8358
    @johnm8358 Před 4 lety +5

    As someone trying to understand the progressive changes to react this is an excellent vid

  • @commanderchbib
    @commanderchbib Před 5 lety +190

    Anyone else here cause they didn't wanna watch the 1h35m video from the React Conf? :-)

    • @uidotdev
      @uidotdev  Před 5 lety +10

      Welcome! :)

    • @adeshas83
      @adeshas83 Před 4 lety +5

      like seriously all the videos are over an hour ......so annoying

    • @devolee8302
      @devolee8302 Před 4 lety +16

      I watched it but amazingly this one actually covers the history and reasonings better.

    • @arihasan3423
      @arihasan3423 Před 4 lety

      hahah!!

    • @ericcartman4799
      @ericcartman4799 Před 3 lety

      haha...exaclty

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

    On of the best tutorial I've ever viewed. Thanks, these were complicated things for me, but you lighted up the dark ! :)

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

    A great detail of the reasoning and history, thanks Tyler

  • @alex_chugaev
    @alex_chugaev Před 3 lety +10

    Angular: makes a single evolutional change, gets loads of hate
    React: changes every 2 years, everybody's happy.
    How?!

    • @u4yk
      @u4yk Před 2 lety

      Because Facebook.

    • @martapfahl940
      @martapfahl940 Před rokem +1

      I dont know Angular yet but maybe the change in Angular was tremendous and the changes in React are simple but extremly improving everything? Don't know but there is a reason for everything

  • @diegovillafane6313
    @diegovillafane6313 Před 2 lety

    Dude, it's so so so important to give perspective, thank you! This was elinghtening.

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

    The best intro that I have seen till date. Thanks for the video Tyler. By the way, I follow your blog posts which are of the same high quality.

  • @jasonwelsh417
    @jasonwelsh417 Před 4 lety +1

    This is my new favorite channel. I will be subscribing to your courses. Thanks for explaining things so well.

  • @Andrei-xb1pz
    @Andrei-xb1pz Před 4 lety +3

    Many people know react hooks but to find people know how to explain it is a bit harder. Congrats!

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

    Why did I miss this channel when I started learning react

  • @edcoronado
    @edcoronado Před 5 lety +4

    This is awesome. Thanks for sharing but I think you also missed talking about the beautiful combination of Context and the “useContext” hook. I think these together make using something like redux or mobx unnecessary in most cases. It’s extremely intuitive and less cluttered. Thanks for your content! Really liked how you explained the history of the “why”

  • @codewithguillaume
    @codewithguillaume Před 2 lety

    Thank you so much for this quick course, it was impressive! Very well explained, in just 15 min I could put words on something I experienced since years ! Subscribing now :)

  • @j1ooz3
    @j1ooz3 Před 4 lety +1

    Thanks for the video! I really liked how you first explained *why* instead of directly starting with "what". That made it way easier to understand the concepts.

    • @uidotdev
      @uidotdev  Před 4 lety

      Glad you enjoyed it. Thanks for the kind words.

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

    what the... your skill in explaining stuff is incredible. I know hooks an i still was "hooked" on you video. :D

  • @bahaaaddinbalashoni9123
    @bahaaaddinbalashoni9123 Před 5 lety +1

    Just loved the way you introduced the design pattern of the hooks, and what problems it solves.
    I'm actually now very intrigued to go and read the hooks part in React's source code, to know how they implemented the reactivity there.
    Thanks. Keep going with what you do.

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

    As most here have already said, you explained this well, covering the history, showing code samples + before and after, and the reasoning, but most importantly in a short amount of time (the primary reason I clicked this video (I will click videos that are 5min, 10min, and 15min being the max)). You also speak calmly from a neutral stance; I could not sense any frustration or whining in your tone of voice. Keep it up!

    • @uidotdev
      @uidotdev  Před 4 lety

      Thanks so much Ryan! Glad you found it useful.

  • @kristianlonergan2920
    @kristianlonergan2920 Před 4 lety +3

    Very clear and concise points!

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

    This is prob the best new react video out there...gosh...the history lesson was exceptional to watch

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

    This is so cool, so well explained, keep it up, will watch more of your channel

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

    Thanks for making some of the best informational videos about Javascript and sharing your knowledge with us!

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

    Very useful video, absolutely nailed it, but problem is , actually very little one (not only this video), when you editing video/audio please make spaces/gaps a bit longer between end and start new sentence , even for few more milliseconds, for not english speaking people is hard to understand , to quick information goes through . But that’s happens in 80% new videos, it's kind of very popular these days :) Apart of that this is the best video ever about hooks! Good job Tyler.

    • @uidotdev
      @uidotdev  Před 4 lety

      That's great feedback. Thank you!

  • @Mr-Multiplayer
    @Mr-Multiplayer Před 4 lety +2

    Now that solved most of my questions and mistakes i was making in react. Thank you😍

  • @sunguru981
    @sunguru981 Před 5 lety +1

    Actually I saw this at your instagram live .. but it wasnt clear.. Thanks alot for reposting this sir :)

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

    This is a really good explanation, thank you

  • @marceli-wac
    @marceli-wac Před 4 lety +1

    Excellent explanation! Awesome job in conveying the whole concept in bare 14 minutes!

  • @DirtySocrates
    @DirtySocrates Před 4 lety +1

    Thank YOU!!!! I finally understand what I've been looking at for a couple weeks.

  • @mehdiwadoud8098
    @mehdiwadoud8098 Před 4 lety +1

    I found this video very helpful as I am new to React coming from the Angular world, Thank you so much.

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

    Supreme explanation, looking forward to this course greatly! Hopefully you'll use async/await/error boundaries when suitable :)

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

    I'm really impressed with the quality of explanations here. I hope this channel grows fast!! THANK YOU

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

    Beautifully explained 🙏

  • @Ctrl_Alt_Elite
    @Ctrl_Alt_Elite Před 4 lety

    This video is so insightful for people that have started learning React in the more recent years, amazing job! 💪💯

  • @joebrady9829
    @joebrady9829 Před 4 lety +3

    Awesome video, super well explained! I was kind of confused by "repos" though as I was thinking it was implementing the repository pattern, it might have been more clear loading "todos" or some other data that doesn't have double meaning in software.

    • @uidotdev
      @uidotdev  Před 4 lety +1

      TBH, I've never even heard of the repositories pattern. I'll check it out.

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

    Wow, this video is great. Thanks for the really in-depth explanation.

    • @uidotdev
      @uidotdev  Před 4 lety

      You're welcome. Thanks for the kind words!

  • @bariscan9267
    @bariscan9267 Před 4 lety

    This is the most precise and useful video I have ever watched so far.

  • @xoscarreyes
    @xoscarreyes Před 4 lety +1

    This video is just beautiful and gets exactly to the point! thanks for making it

    • @uidotdev
      @uidotdev  Před 4 lety

      Thanks for appreciating it!

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

    Thanks so much for this, soo good!

  • @JayRGabz
    @JayRGabz Před 4 lety +1

    just wow.... great explanation

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

    Hi Tyler your explanation is awesome,thanks. Can you please make a video on es6 symbols like what are the real time use cases in our web application, where should we use in our app. Please it will be very helpful.Thank you.

  • @ikarosouza9505
    @ikarosouza9505 Před 2 lety

    this is just amazing, plain and simple

  • @spicystrike5088
    @spicystrike5088 Před 4 lety +1

    This is very informative, thank you.

    • @uidotdev
      @uidotdev  Před 4 lety

      You're welcome. Thanks for the kind words!

  • @dhruvduttjadhav9837
    @dhruvduttjadhav9837 Před 4 lety +1

    Incredible and thorough. 🚀

  • @ekkamailax
    @ekkamailax Před 3 lety

    These problem were solved decades ago with a pattern called MVC. React is a view library, it’s not designed to handle the complexities of a large scale application. Defining models and controllers as separate entities, then using react just for view rendering solves most (if not all) frustrations with react.

  • @maxart2007
    @maxart2007 Před 4 lety +1

    Thank you very much, so briefly explained everything, saved me a lot of time)

  • @ShyamSundar055
    @ShyamSundar055 Před 4 lety +1

    Now i understand why hooks are simple to use. Thanks

  • @nerdiloo9863
    @nerdiloo9863 Před 4 lety +3

    I dig the pacing /explanation of this. You might be on to something Tyler Mchelob - cheers 🍺

  • @KomalSikka
    @KomalSikka Před 4 lety +53

    Two weeks of banging my head on internet trying to understand hooks and all it took for you was exactly 14 minutes to make me go "aha", shut down my laptop, walk out like a boss and claim that I understand what 90% of the world doesn't!

  • @BobbyBundlez
    @BobbyBundlez Před 3 lety

    is this video implying that arrow function were basically designed due to problems with "this" and react development? people still dont understand "this" and i hear a lot of noobie developers say they just use arrow functions to avoid that problem lol.... but it does seem like arrow functions were made to help assist react with binding lol.. perhaps im wrong tho?.... its crazy how much power facebook/react has had on the entire ecosystem. i just started learning React, luckily i started with some legacy code and im a patient learner ( i feel like wayyyy too many people don't bother watching videos like this) and its awesome to see such an in depth historic breakdown. you are so right.... understanding WHY we use something helps so much. often i learn something before asking this question and never even end up using the skill later lol

  • @joejoe-lb6bw
    @joejoe-lb6bw Před 5 lety

    Excellent overview of hooks and, most importantly, why hooks were needed.

  • @AshishRawat-zl6te
    @AshishRawat-zl6te Před 4 lety

    Really amazing video. Covered the evolution of react since it's inception, a really great way of narrating the things.

  • @YeetYeetYe
    @YeetYeetYe Před rokem

    DUDE you have a gift. Holy shit. Beautifully explained. 11/10.

  • @anagreug
    @anagreug Před 4 lety +1

    Really good clear explanation!!! Thanks

  • @feralking3000
    @feralking3000 Před 4 lety

    thanks this helped me a lot, specially looking into it from the dates perspective

  • @dean6046
    @dean6046 Před 4 lety +1

    Thank you Tyler!

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

    Super informative!!

  • @welcometochristown
    @welcometochristown Před 3 lety

    Great video, best explanation I have heard yet.

  • @paxaeterna3709
    @paxaeterna3709 Před 3 lety

    That image throwing the baby lion is very distracting. LOL.

  • @lapkar
    @lapkar Před 4 lety +1

    Thank you so much

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

    Holy divine wisdom injected. Thank you!

  • @AbdelhameedG
    @AbdelhameedG Před 4 lety +1

    Thanks Tyler! Now I Love Hooks!

  • @iamkiko5046
    @iamkiko5046 Před 5 lety +1

    This is a great overview, thank you.

  • @Matt36788
    @Matt36788 Před 5 lety

    Nice work, great intro. Looking forward to the course!

  • @yevhenkozlov286
    @yevhenkozlov286 Před 4 lety

    To me, one of the biggest advantages of Hook concept - is automatic cleanup in `useEffect`. That allows us to avoid race conditions relatively easily(but it's missed in sample 11:49).

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

    Awesome! Really helped me :)

  • @marcosrdz89
    @marcosrdz89 Před 4 lety

    Fantastic and clean explanation

  • @thomasbrown8680
    @thomasbrown8680 Před 4 lety +1

    This was so good! Thank you.

  • @WatchcubeYT
    @WatchcubeYT Před 4 lety

    3:15 if you don't want to bind the method in constructor use arrow function when you declare your function instead of regular function

  • @harshapatil9766
    @harshapatil9766 Před 5 lety +1

    very well explained the evolution of React, awesome :)

  • @abhisheksaxena6413
    @abhisheksaxena6413 Před 4 lety +1

    great starting animated view (dog) ... so creative...

  • @idontwhy3132
    @idontwhy3132 Před 4 lety +1

    I've also heard of composition mentioned in terms of composing functionality into classes. Is it generally speaking referring to allowance for customization? [ie. custom hooks]

  • @lardosian
    @lardosian Před 5 lety +1

    Very clear explanation, subbed!

  • @girlsincode9255
    @girlsincode9255 Před 3 lety

    simple and clear !

  • @natedawgg77
    @natedawgg77 Před 4 lety

    Thank you for making this video. I think you did a great job of explaining "why" hooks exist and what problems they are attempting to fix. I still think hooks miss the target on their goal of making React better. It feels like you are just trading one set of problems for another with 2 apis you have to learn.

  • @brianlee9898
    @brianlee9898 Před 4 lety

    Instantly hooked. Great video.

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

    Quality content every time!

  • @__greg__
    @__greg__ Před 4 lety

    Very helpful, thanks!

  • @SiddharthPant
    @SiddharthPant Před 4 lety

    You sir are a legend!

  • @oscardasilva971
    @oscardasilva971 Před 2 lety

    Good explanation, thank you.

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

    Great, great.. just great!

  • @narendrasinghrathore1012

    Best explanation for hooks !!!

  • @petrkassadinovich2705
    @petrkassadinovich2705 Před 4 lety

    Thank you!

  • @Talel_kraiem
    @Talel_kraiem Před rokem

    2023 still an amazing video 🥰