Why React Hooks?

  Рет қаралды 175,725

uidotdev

uidotdev

Күн бұрын

Пікірлер: 273
@IPIgorPieruccini
@IPIgorPieruccini 4 жыл бұрын
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 4 жыл бұрын
Haha same here. I rewinded, closed my eyes and listened. A little more clear doing it that way, I found.
@rauldeandrade
@rauldeandrade 4 жыл бұрын
@@andyengle same here
@compedium
@compedium 4 жыл бұрын
same, gifs distract sometimes.
@leeopperman1783
@leeopperman1783 3 жыл бұрын
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 3 жыл бұрын
and the crowd goes wild !!!
@roberthinckley7508
@roberthinckley7508 4 жыл бұрын
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 KZbin though....
@compedium
@compedium 4 жыл бұрын
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.
@mattLake1455
@mattLake1455 5 жыл бұрын
This video is explained incredibly well
@uidotdev
@uidotdev 5 жыл бұрын
Thank you Matteo!
@Lambdaphile
@Lambdaphile 4 жыл бұрын
I don't think I've seen anyone else in the JS community explaining things in this level of clarity :)
@uidotdev
@uidotdev 4 жыл бұрын
Thank you!
@smithcodes1243
@smithcodes1243 3 жыл бұрын
This guy is so good at explaining things, one of the best teachers hands down! I will enroll in your course now!
@arnulfoloredo1079
@arnulfoloredo1079 4 жыл бұрын
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.
@spongechameleon6940
@spongechameleon6940 4 жыл бұрын
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.
@SBDavin
@SBDavin 5 жыл бұрын
I can't wait until they change how to create components and relearn React (again).
@ruxaa2224
@ruxaa2224 4 жыл бұрын
Could be worse if Angular.
@johnm8358
@johnm8358 4 жыл бұрын
Hey same with vue
@tedigrizli
@tedigrizli 11 ай бұрын
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!
@caoimghgin
@caoimghgin 4 жыл бұрын
I simply could not wrap my head around this. Now, I 'get it'. Thanks for doing this. A life saver!
@cli23
@cli23 4 жыл бұрын
Love this - especially the first chunk that explains the "why?". I never really felt the need to start using hooks until now :)
@uidotdev
@uidotdev 4 жыл бұрын
Glad you enjoyed it!
@Andrei-xb1pz
@Andrei-xb1pz 4 жыл бұрын
Many people know react hooks but to find people know how to explain it is a bit harder. Congrats!
@Deepakkumar431
@Deepakkumar431 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 4 жыл бұрын
Glad you enjoyed it!
@yebot
@yebot 3 жыл бұрын
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.
@simonswiss
@simonswiss 5 жыл бұрын
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 5 жыл бұрын
You're welcome! Good luck with the workshop!
@melvinlijiabraham4165
@melvinlijiabraham4165 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
@EvilTim1911
@EvilTim1911 5 жыл бұрын
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 5 жыл бұрын
Glad it was helpful! Welcome back to React land.
@bojanadrangova7189
@bojanadrangova7189 5 жыл бұрын
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.
@uidotdev
@uidotdev 5 жыл бұрын
Thank you!
@carlosreis9775
@carlosreis9775 Жыл бұрын
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 4 жыл бұрын
As someone trying to understand the progressive changes to react this is an excellent vid
@TeParamount
@TeParamount 2 жыл бұрын
Thank you so much, I've been thinking about this all day and this has answered all my questions.
@j1ooz3
@j1ooz3 4 жыл бұрын
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 4 жыл бұрын
Glad you enjoyed it. Thanks for the kind words.
@RyanBriscall
@RyanBriscall 4 жыл бұрын
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 4 жыл бұрын
Thanks so much Ryan! Glad you found it useful.
@Equilibrier
@Equilibrier 3 жыл бұрын
On of the best tutorial I've ever viewed. Thanks, these were complicated things for me, but you lighted up the dark ! :)
@diegovillafane6313
@diegovillafane6313 3 жыл бұрын
Dude, it's so so so important to give perspective, thank you! This was elinghtening.
@OurPastSecrets
@OurPastSecrets 4 жыл бұрын
A great detail of the reasoning and history, thanks Tyler
@edcoronado
@edcoronado 5 жыл бұрын
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”
@jasonwelsh417
@jasonwelsh417 4 жыл бұрын
This is my new favorite channel. I will be subscribing to your courses. Thanks for explaining things so well.
@uidotdev
@uidotdev 4 жыл бұрын
Thanks Jason!
@commanderchbib
@commanderchbib 5 жыл бұрын
Anyone else here cause they didn't wanna watch the 1h35m video from the React Conf? :-)
@uidotdev
@uidotdev 5 жыл бұрын
Welcome! :)
@adeshas83
@adeshas83 5 жыл бұрын
like seriously all the videos are over an hour ......so annoying
@devolee8302
@devolee8302 5 жыл бұрын
I watched it but amazingly this one actually covers the history and reasonings better.
@arihasan3423
@arihasan3423 5 жыл бұрын
hahah!!
@ajeetworking
@ajeetworking 4 жыл бұрын
haha...exaclty
@bahaaaddinbalashoni9123
@bahaaaddinbalashoni9123 5 жыл бұрын
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.
@uidotdev
@uidotdev 5 жыл бұрын
Thank you!
@codewithguillaume
@codewithguillaume 2 жыл бұрын
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 :)
@kristianlonergan2920
@kristianlonergan2920 5 жыл бұрын
Very clear and concise points!
@adeshas83
@adeshas83 5 жыл бұрын
This is prob the best new react video out there...gosh...the history lesson was exceptional to watch
@uidotdev
@uidotdev 5 жыл бұрын
Thank you! Means a lot.
@alex_chugaev
@alex_chugaev 3 жыл бұрын
Angular: makes a single evolutional change, gets loads of hate React: changes every 2 years, everybody's happy. How?!
@u4yk
@u4yk 2 жыл бұрын
Because Facebook.
@martapfahl940
@martapfahl940 Жыл бұрын
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
@rakeshchary4235
@rakeshchary4235 3 жыл бұрын
Why did I miss this channel when I started learning react
@marceli-wac
@marceli-wac 4 жыл бұрын
Excellent explanation! Awesome job in conveying the whole concept in bare 14 minutes!
@uidotdev
@uidotdev 4 жыл бұрын
Thank you!
@lietuvisdarius
@lietuvisdarius 4 жыл бұрын
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 4 жыл бұрын
That's great feedback. Thank you!
@geekybrains
@geekybrains 5 жыл бұрын
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.
@uidotdev
@uidotdev 5 жыл бұрын
❤️
@travezripley
@travezripley 5 жыл бұрын
Thanks for making some of the best informational videos about Javascript and sharing your knowledge with us!
@uidotdev
@uidotdev 5 жыл бұрын
Thanks for the kind words!
@travezripley
@travezripley 5 жыл бұрын
@@uidotdev Thanks for Killing it!
@nom__sain2239
@nom__sain2239 2 жыл бұрын
This is a really good explanation, thank you
@AnthonyInSanDiego
@AnthonyInSanDiego 4 жыл бұрын
I'm really impressed with the quality of explanations here. I hope this channel grows fast!! THANK YOU
@uidotdev
@uidotdev 4 жыл бұрын
Me too! Thank you!
@Ctrl_Alt_Elite
@Ctrl_Alt_Elite 4 жыл бұрын
This video is so insightful for people that have started learning React in the more recent years, amazing job! 💪💯
@uidotdev
@uidotdev 4 жыл бұрын
Thank you!
@joebrady9829
@joebrady9829 4 жыл бұрын
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 4 жыл бұрын
TBH, I've never even heard of the repositories pattern. I'll check it out.
@Naveenkashyap243
@Naveenkashyap243 5 жыл бұрын
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
@yevhenkozlov286
@yevhenkozlov286 5 жыл бұрын
4:05
@ikarosouza9505
@ikarosouza9505 2 жыл бұрын
this is just amazing, plain and simple
@mehdiwadoud8098
@mehdiwadoud8098 4 жыл бұрын
I found this video very helpful as I am new to React coming from the Angular world, Thank you so much.
@uidotdev
@uidotdev 4 жыл бұрын
Glad you enjoyed it!
@ekkamailax
@ekkamailax 3 жыл бұрын
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.
@uidotdev
@uidotdev 3 жыл бұрын
OK boomer.
@joejoe-lb6bw
@joejoe-lb6bw 5 жыл бұрын
Excellent overview of hooks and, most importantly, why hooks were needed.
@bariscan9267
@bariscan9267 5 жыл бұрын
This is the most precise and useful video I have ever watched so far.
@AbhishekSharma_1504
@AbhishekSharma_1504 2 жыл бұрын
This is so cool, so well explained, keep it up, will watch more of your channel
@uidotdev
@uidotdev 2 жыл бұрын
Thank you!
@dhruvduttjadhav9837
@dhruvduttjadhav9837 4 жыл бұрын
Incredible and thorough. 🚀
@yevhenkozlov286
@yevhenkozlov286 5 жыл бұрын
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).
@ImanAkrami
@ImanAkrami 3 жыл бұрын
what the... your skill in explaining stuff is incredible. I know hooks an i still was "hooked" on you video. :D
@uidotdev
@uidotdev 3 жыл бұрын
Glad you enjoyed it!
@ShyamSundar055
@ShyamSundar055 4 жыл бұрын
Now i understand why hooks are simple to use. Thanks
@BobbyBundlez
@BobbyBundlez 4 жыл бұрын
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
@natedawgg77
@natedawgg77 5 жыл бұрын
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.
@Mr-Multiplayer
@Mr-Multiplayer 5 жыл бұрын
Now that solved most of my questions and mistakes i was making in react. Thank you😍
@sourishdutta9600
@sourishdutta9600 5 жыл бұрын
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.
@maxiequa567
@maxiequa567 5 жыл бұрын
Supreme explanation, looking forward to this course greatly! Hopefully you'll use async/await/error boundaries when suitable :)
@AshishRawat-zl6te
@AshishRawat-zl6te 4 жыл бұрын
Really amazing video. Covered the evolution of react since it's inception, a really great way of narrating the things.
@JayRGabz
@JayRGabz 4 жыл бұрын
just wow.... great explanation
@exokristian
@exokristian 2 жыл бұрын
Holy divine wisdom injected. Thank you!
@feralking3000
@feralking3000 4 жыл бұрын
thanks this helped me a lot, specially looking into it from the dates perspective
@gkumartube
@gkumartube 5 ай бұрын
Beautifully explained 🙏
@welcometochristown
@welcometochristown 4 жыл бұрын
Great video, best explanation I have heard yet.
@idontwhy3132
@idontwhy3132 4 жыл бұрын
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]
@marcosrdz89
@marcosrdz89 4 жыл бұрын
Fantastic and clean explanation
@spicystrike5088
@spicystrike5088 4 жыл бұрын
This is very informative, thank you.
@uidotdev
@uidotdev 4 жыл бұрын
You're welcome. Thanks for the kind words!
@MurphyIsMyLastName
@MurphyIsMyLastName 5 жыл бұрын
Wow, this video is great. Thanks for the really in-depth explanation.
@uidotdev
@uidotdev 5 жыл бұрын
You're welcome. Thanks for the kind words!
@sunguru981
@sunguru981 5 жыл бұрын
Actually I saw this at your instagram live .. but it wasnt clear.. Thanks alot for reposting this sir :)
@YeetYeetYe
@YeetYeetYe Жыл бұрын
DUDE you have a gift. Holy shit. Beautifully explained. 11/10.
@xoscarreyes
@xoscarreyes 5 жыл бұрын
This video is just beautiful and gets exactly to the point! thanks for making it
@uidotdev
@uidotdev 5 жыл бұрын
Thanks for appreciating it!
@DirtySocrates
@DirtySocrates 5 жыл бұрын
Thank YOU!!!! I finally understand what I've been looking at for a couple weeks.
@uidotdev
@uidotdev 5 жыл бұрын
Glad it helped!
@johngill5175
@johngill5175 3 жыл бұрын
Thanks so much for this, soo good!
@nerdiloo9863
@nerdiloo9863 5 жыл бұрын
I dig the pacing /explanation of this. You might be on to something Tyler Mchelob - cheers 🍺
@uidotdev
@uidotdev 5 жыл бұрын
Thank you!
@razmans
@razmans 4 жыл бұрын
Great explanation. So its like async await and promises?
@dean6046
@dean6046 4 жыл бұрын
Thank you Tyler!
@uidotdev
@uidotdev 4 жыл бұрын
❤️
@brianlee9898
@brianlee9898 5 жыл бұрын
Instantly hooked. Great video.
@paxaeterna3709
@paxaeterna3709 3 жыл бұрын
That image throwing the baby lion is very distracting. LOL.
@AbdelhameedG
@AbdelhameedG 4 жыл бұрын
Thanks Tyler! Now I Love Hooks!
@Loppy2345
@Loppy2345 5 жыл бұрын
I tried using hooks, was a pain in the ass especially with typescript, so went back to classes. Being pragmatic is often the best choice.
@blasedefou
@blasedefou 4 жыл бұрын
Thank you so much
@iamkiko5046
@iamkiko5046 5 жыл бұрын
This is a great overview, thank you.
@abhisheksaxena6413
@abhisheksaxena6413 4 жыл бұрын
great starting animated view (dog) ... so creative...
@spcs999
@spcs999 5 жыл бұрын
Super informative!!
@narendrasinghrathore1012
@narendrasinghrathore1012 5 жыл бұрын
Best explanation for hooks !!!
@maxart2007
@maxart2007 5 жыл бұрын
Thank you very much, so briefly explained everything, saved me a lot of time)
@uidotdev
@uidotdev 5 жыл бұрын
Glad I could help!
@devilfriend
@devilfriend 3 жыл бұрын
Great video. Sadly I think they made React less readable, and it sucks but it was really easy to understand prior to this change.
@lardosian
@lardosian 5 жыл бұрын
Very clear explanation, subbed!
@uidotdev
@uidotdev 5 жыл бұрын
Thank you!
@thomasbrown8680
@thomasbrown8680 4 жыл бұрын
This was so good! Thank you.
@jeantimex
@jeantimex 5 жыл бұрын
Awesome explanation! Thank you!
@oscardasilva971
@oscardasilva971 2 жыл бұрын
Good explanation, thank you.
@SiddharthPant
@SiddharthPant 4 жыл бұрын
You sir are a legend!
@__greg__
@__greg__ 4 жыл бұрын
Very helpful, thanks!
@harshapatil9766
@harshapatil9766 5 жыл бұрын
very well explained the evolution of React, awesome :)
@GeordyJames
@GeordyJames 5 жыл бұрын
Excellent explanation. Thanks....
@elmirmahmudov6215
@elmirmahmudov6215 5 жыл бұрын
just loved the explanation!
@girlsincode9255
@girlsincode9255 4 жыл бұрын
simple and clear !
@Matt36788
@Matt36788 5 жыл бұрын
Nice work, great intro. Looking forward to the course!
@uidotdev
@uidotdev 5 жыл бұрын
Enjoy!
@FrankDecker3
@FrankDecker3 5 жыл бұрын
In my opinion... This new way seems so yuckie. Seems like just another way... framework... with literally 100% changes. It looks quite messy and even more work than a React class. Yes, I agree that states need to be kept and that it is annoying having to use componentDidMount, then setState inside, and have to keep track of if a component has data yet before loading... and that classes should be not be required to be visual... huuuu... but that is easily overcome and then it is coding as usual. What Facebook has now done is give us yet another way of doing coding and alot of new introduction to API methods. It seems like this framework is going to be more coupled to React framework specifically. Before React was less intrusive but these new changes are making react more intrusive, meaning there is so much more to dependencies, and also we to remember, learn, understand, and implement yet another implementation of React. The more advanced you go into a framework or the more you expect a framework to do for you, the more you are coupling code to a specific way of coding. Solving problems with issues that were created by depending on such a large frameworks, that do things that one could do themselves with a deeper understanding of JavaScript, is not really solving problems but removing a specific set of problems and presenting a new set of problems. Using JavaScript alone, to solve web development issues will in return bring in more issues to solve and create a new web of issues from that. Why all the new API functions? Because if you want to solve problems using functional programming, (like Facebook changing to functional) you then need to write methods that can still provide you previous functionalities that was handled using Class inheritance. It will get messy. I am all for change and innovation... re-inventing solutions that we have already have is redundant. Do we really need hundreds of solutions by frameworks, just to get our work done? I feel that functional programming is the new trend. I am guessing that is why Facebook, at least in part, has decided to solve it's past issues by using a functional approach.
@trisimix
@trisimix 4 жыл бұрын
Frank Decker what are you talking about, react is a library
@trisimix
@trisimix 4 жыл бұрын
And as cool as functional solutions like elixir are, you cannot create identical front end experiences with them
@compedium
@compedium 4 жыл бұрын
Well put, it feels like I've learned React 5 times in the last couple of years...
@rubayatislam4804
@rubayatislam4804 2 жыл бұрын
This video could have been a lot better if you would have also run the code and discuss what the "this" was doing at the first part of the video. it really helps when you run a code and see the result. I dont know about others, but it would have helped me if you could show errors and what this was referring to in different parts of the code.
Why Signals Are Better Than React Hooks
16:30
Web Dev Simplified
Рет қаралды 488 М.
The Story of Next.js
12:13
uidotdev
Рет қаралды 585 М.
They Chose Kindness Over Abuse in Their Team #shorts
00:20
I migliori trucchetti di Fabiosa
Рет қаралды 12 МЛН
Миллионер | 3 - серия
36:09
Million Show
Рет қаралды 2 МЛН
The IMPOSSIBLE Puzzle..
00:55
Stokes Twins
Рет қаралды 169 МЛН
ALL React Hooks Explained in 12 Minutes
12:21
Code Bootcamp
Рет қаралды 159 М.
The Story of Concurrent React
11:59
uidotdev
Рет қаралды 161 М.
You might not need useEffect() ...
21:45
Academind
Рет қаралды 174 М.
The Story of Asynchronous JavaScript
10:20
uidotdev
Рет қаралды 155 М.
The Story of React
10:05
uidotdev
Рет қаралды 250 М.
The Story of TypeScript
6:27
uidotdev
Рет қаралды 233 М.
React useState() hook introduction 🎣
16:33
Bro Code
Рет қаралды 34 М.
The Story of React Query
8:55
uidotdev
Рет қаралды 112 М.
7 React Lessons I Wish I Knew Earlier
7:30
Code Bootcamp
Рет қаралды 70 М.
What is OpenTelemetry?
12:55
Highlight
Рет қаралды 13 М.
They Chose Kindness Over Abuse in Their Team #shorts
00:20
I migliori trucchetti di Fabiosa
Рет қаралды 12 МЛН