React Hooks Tutorial - 26 - useCallback Hook

  Рет қаралды 310,474

Codevolution

Codevolution

Күн бұрын

📘 Courses - learn.codevolution.dev/
💖 Support UPI - support.codevolution.dev/
💖 Support PayPal - www.paypal.me/Codevolution
💾 Github - github.com/gopinav
📱 Follow Codevolution
+ Twitter - / codevolutionweb
+ Facebook - / codevolutionweb
📫 Business - codevolution.business@gmail.com
useCallback Hook in React
kentcdodds.com/blog/usememo-a...

Пікірлер: 209
@lukemuga434
@lukemuga434 4 жыл бұрын
The way you break down complex concepts into clear and concise explanations that are very easy to understand is just amazing. Keep up the good work
@quanhglam
@quanhglam 2 жыл бұрын
“The question you might have is …” satisfies me every time. Very thoughtful videos.
@jsnjocsin
@jsnjocsin 3 жыл бұрын
I've been starting learning react just this week and this video helps me understand one of the fundamentals of React in a clear and understandable way. Kudos to the author of this tutorial, keep up the good work!
@nickstaresinic9933
@nickstaresinic9933 4 жыл бұрын
All videos in this series are very well organized and presented. The explanation in *this* particular video is the clearest I've come across on using Memo & useCallback to prevent unnecessary re-renders. Thanks.
@manishrana9078
@manishrana9078 Жыл бұрын
The way you explain the use cases and why and in which condition we must use certain things is just amazing. It's easy to learn concepts from you.
@kaveenhyacinth
@kaveenhyacinth 3 жыл бұрын
I was seeking an extensive explanation for useCallBack hook. I found it today! You are amazing bro 💙
@hongcai4617
@hongcai4617 2 жыл бұрын
I really appreciate your logic and hard work. I got stuck in my project and needed to come and understand why it was designed like that. Then your explanation enlightens me with easy examples. You should earn millions of subscriptions.
@sarahwbs
@sarahwbs 4 жыл бұрын
Great explanation of Memo and useCallback! Very thorough and clear.
@craft99
@craft99 4 жыл бұрын
Breaking down that sentence was incredibly helpful. Thank you.
@prakhar2806
@prakhar2806 4 жыл бұрын
Have been having problem for a long time understanding the concept before this very video. The simplest explanation. thanks for the great video
@icecofffeee
@icecofffeee 3 жыл бұрын
Great stuff! Its near impossible to find people who can explain complex topics with such clarity
@LuisPintado
@LuisPintado 4 жыл бұрын
I have seen other videos that cover this topic, but it is in this one that I really understood how it works. Thank you!!
@pannihto7588
@pannihto7588 4 жыл бұрын
The best explanation I've seen so far. Thank you
@coder_monkey
@coder_monkey 4 жыл бұрын
Dude, this one is super cool. The way you explain the stuff is far better. I wish you could have written the React docs.
@Jason-uv5tm
@Jason-uv5tm 3 жыл бұрын
Honestly, though there is nothing wrong with react docs because if you are learning react correctly, you should know what a dependency list is (from useEffect), and if you know javascript, then you should know what callbacks are. Only my opinion though, you do you.
@singleren
@singleren 4 жыл бұрын
The best explaination on useCallback so far
@ritheeshthomas8441
@ritheeshthomas8441 3 жыл бұрын
You are an amazing tutor. The way you explain the concepts are just amazing. Really helpful.
@haciendadad
@haciendadad Жыл бұрын
Thank you for making this hook easy to understand!! I don't know what, but I was having trouble understanding this one, but your simple, clear example was just perfect! I looked at like 6 other videos, and yet this one clicked with me. You just got a new subscriber!
@Mohamed-M-M
@Mohamed-M-M 4 жыл бұрын
Very informative & well explained in detail, Your way of teaching is amazing, thank you.
@ionitaa
@ionitaa 5 жыл бұрын
Great videos. Please do a component test series after hooks!
@srinivas539
@srinivas539 3 жыл бұрын
Learned React easily with your concepts; you saved lot of hours to invest learning topics.
@pashapear8795
@pashapear8795 4 жыл бұрын
Thank you! This was very informative and well explained.
@dukewellington5222
@dukewellington5222 3 жыл бұрын
Concise and actionable. This here is an textbook example for how tech tutorials should be.
@hercules2170
@hercules2170 2 жыл бұрын
I love your content..You explain concepts in such an easy manner! Happy to have found your channel! :)
@PriyankaSingh-vm4kv
@PriyankaSingh-vm4kv 3 жыл бұрын
No words to describe how easily you explain this concept 👏👏👏
@shakhawathossainshawon4769
@shakhawathossainshawon4769 4 жыл бұрын
What an Explanation brother! Keep it up. You have amazing talent. Appreciate it.
@najimali32
@najimali32 3 жыл бұрын
This is the best video I have seen on useCallback. Thank you so much!!
@neerajyadav1522
@neerajyadav1522 4 жыл бұрын
Really nice explanation of useCallback hook. I knew about other hooks, but this was alien to me, but you explained it really well. Subscribing for the explanation.
@tiagocunhafernandes6607
@tiagocunhafernandes6607 5 жыл бұрын
Very good example. I love see logs to check performance issues!!!
@shawnlee5956
@shawnlee5956 Жыл бұрын
the best version of explaining useMemo & useCallback Hook!
@TheSatheeshmca
@TheSatheeshmca 2 жыл бұрын
The way you are explaining is awesome thank you so much for sharing this video and your knowledge.
@jorgericaldi6438
@jorgericaldi6438 4 жыл бұрын
omg, you explain like god. Really easy to understand you man. thanks so much :)
@poryanikmaram3444
@poryanikmaram3444 9 ай бұрын
the best simplified content you can see for useCallback hook ! 👋
@onesome7713
@onesome7713 Ай бұрын
definitely the best lecture I've ever watched! Thx!
@tabrezrahi
@tabrezrahi 2 жыл бұрын
its worth it to watch your videos after 3 yrs of uploaded concept are clear
@drewstifler1440
@drewstifler1440 4 жыл бұрын
You can optimize it more by passing the updater function as the dependency const incrementAge = useCallback(() => { setAge(age=> age + 1) }, [setAge]) Result: Rendering Age PS: it also work without dependency
@abhijeetmaurya7355
@abhijeetmaurya7355 3 жыл бұрын
Can you point out to the source from where you read about it.
@drewstifler1440
@drewstifler1440 3 жыл бұрын
@@abhijeetmaurya7355 react official docs usecallback.
@asananddevsingh
@asananddevsingh 3 жыл бұрын
Even no need to pass "setAge" as a dependency, because it is not the argument of the inner callback function. const incrementAge = React.useCallback(() => { setAge((prevAge) => prevAge + 1); }, []);
@drewstifler1440
@drewstifler1440 3 жыл бұрын
@@asananddevsingh i already said that
@asananddevsingh
@asananddevsingh 3 жыл бұрын
@@drewstifler1440 Yeah, You are Right.
@7huannp
@7huannp 4 жыл бұрын
Excellent. Only this video makes everything clear for me. Thanks
@swingtradersindia
@swingtradersindia 3 жыл бұрын
This is the best explanation..I never comment on any youtube video but This video was really awesome.
@ramineghbaliankhob9685
@ramineghbaliankhob9685 3 жыл бұрын
you are a real teacher, thank you for this tutorials
@MrChubib0
@MrChubib0 3 жыл бұрын
Easy to understand because of the good explanation! Thank you
@user-mo3cw6go7c
@user-mo3cw6go7c 3 жыл бұрын
Take a complex and scary subject and make it really simple You deserve to be appreciated
@yashthakur7419
@yashthakur7419 3 жыл бұрын
One of best explanation skills I have come across
@nikoreva2078
@nikoreva2078 3 жыл бұрын
Really great video!!! I learned a lot in these 15 Minutes!
@classicaltv595
@classicaltv595 Жыл бұрын
Thanks! I really appreciate your work!
@ashutoshtelang8621
@ashutoshtelang8621 2 жыл бұрын
Totally got with the callback concept thank you
@balamca416
@balamca416 Жыл бұрын
excellent explanation, new function is created each rerender, and to solve that function should be memorized using a callback hook👏
@AvinashRathod
@AvinashRathod 4 жыл бұрын
Very well explained , thank you.
@rajendra_K_
@rajendra_K_ Жыл бұрын
Thank you very much explaining the concept in a easy way :)
@sankarrajendran
@sankarrajendran 3 жыл бұрын
Thanks for the video really explains the concepts well. I hope you are doing this way to convey the concepts. If you separate salary and age as a different component with its own state, there is no need of memo or callback. You should have mention these kind of tips at the end. Most of us watching the tutorials are beginners while explaining the concepts if you include best practices also would be really helpful. Thanks..!!
@vishalupadhayay6391
@vishalupadhayay6391 Жыл бұрын
This was just an example! Think of a complex application with multiple child components.
@johnmcaulay4348
@johnmcaulay4348 3 жыл бұрын
Best explanation I’ve seen, thanks!
@justinthareja5881
@justinthareja5881 3 жыл бұрын
Another place you might want to implement useCallback is to maintain referential equality to functions passed into the dependency array for useEffect, etc.
@atikhashmee2009
@atikhashmee2009 4 жыл бұрын
excellent explanations. thank you so much for your effort
@saranyad1446
@saranyad1446 11 ай бұрын
Great. I became clear in this topic after viewing this video
@HarshSingh-hk8fe
@HarshSingh-hk8fe 2 жыл бұрын
this is the best explanation of this hooks , now i know how its working
@subhashgn1775
@subhashgn1775 3 жыл бұрын
Thank you, Vishwas. Really great explanation.👌👌👌👌👌
@augustineonyekachiadmiora9015
@augustineonyekachiadmiora9015 2 жыл бұрын
First time I understand useCallback thanks brother
@zainuddin1205
@zainuddin1205 3 жыл бұрын
Such a good way of teaching!
@antonetrinh8662
@antonetrinh8662 2 жыл бұрын
This is how to explain useCallback. Just Perfect.
@sachiechan
@sachiechan 2 жыл бұрын
Awesome explanation!! Thank you very much :)
@luizdanella4019
@luizdanella4019 3 жыл бұрын
What amazing video! This is great man!
@abhishekvishwakarma9045
@abhishekvishwakarma9045 2 жыл бұрын
awesome Explanation and thanks for the blog 🔥
@abhisheksatyam4733
@abhisheksatyam4733 3 жыл бұрын
I learned so much, thanks !
@MajedDalain
@MajedDalain 2 жыл бұрын
thank u for a great and well-explained video!
@nanto88
@nanto88 3 жыл бұрын
crystal clear explanation, thank you, muito bom
@techycode2217
@techycode2217 4 ай бұрын
Crystal Clear explanation ❤
@shorty235z
@shorty235z 3 жыл бұрын
Not going to lie, this one may took me a few times to rewatch to get my head wrapped around.
@jagdishshetty4782
@jagdishshetty4782 4 жыл бұрын
Great tutorial !!!
@AMANKUMAR-jc2fz
@AMANKUMAR-jc2fz Жыл бұрын
Great Man thanks 👍 really today I understand the way to use these 😁
@agrajyadav9
@agrajyadav9 2 жыл бұрын
awesome as always
@rohil3023
@rohil3023 2 жыл бұрын
I love your videos!
@mytech-youtube8436
@mytech-youtube8436 Жыл бұрын
Amazing explanation!
@elmeroranchero
@elmeroranchero 2 жыл бұрын
I recommend reading the article he put in the description.
@thangphan6047
@thangphan6047 2 жыл бұрын
Thank you so much, I really really appreciate it :)
@himanshushekhar3694
@himanshushekhar3694 3 жыл бұрын
Wow This is Awesome!! great explaination...
@prashenjeetroy7551
@prashenjeetroy7551 4 жыл бұрын
awesome video man
@facundovega1726
@facundovega1726 3 жыл бұрын
EXCELLENT EXPLANATION!!
@AbhishekNigam
@AbhishekNigam 4 жыл бұрын
Good explanation!
@ascodes3461
@ascodes3461 Жыл бұрын
Great one🤩
@mathearts9739
@mathearts9739 3 жыл бұрын
explained clearly new subscriber here thank you very much
@asananddevsingh
@asananddevsingh 3 жыл бұрын
This way will prevent the re-rendering of buttons too. const incrementAge = useCallback(() => { setAge((prevAge) => prevAge + 1); }, []);
@harshalsingh2443
@harshalsingh2443 2 жыл бұрын
How is this happening
@asananddevsingh
@asananddevsingh 2 жыл бұрын
@@harshalsingh2443 This is because, I've removed the dependency of useCallback i.e age and using function while updating the state of age, it will automatically give me previous state of age. Remember here handler function is not dependent on age.
@shobikakalidasan7621
@shobikakalidasan7621 2 жыл бұрын
Great Explanation
@johnconnor9787
@johnconnor9787 2 жыл бұрын
Greatly explained
@himanshushekhar3694
@himanshushekhar3694 3 жыл бұрын
Really great video thanks a lot
@MrRorypam
@MrRorypam Жыл бұрын
Very good understanding.
@emyboybeats4330
@emyboybeats4330 3 жыл бұрын
Codevolution Your just the best
@growingisgood
@growingisgood 2 жыл бұрын
Amazing explanation.
@axyLms
@axyLms 4 жыл бұрын
its beautiful... Thanks you
@t.manikantareddy8681
@t.manikantareddy8681 4 жыл бұрын
You're Awesome Dude....
@bolbolstudio1264
@bolbolstudio1264 3 жыл бұрын
you are a legend
@MuhammadAhmed-wb2sq
@MuhammadAhmed-wb2sq 2 жыл бұрын
thanks for those videos.
@milindjain544
@milindjain544 Жыл бұрын
Awesome explaination
@VishalSharma-rn7mt
@VishalSharma-rn7mt 3 жыл бұрын
Awesome, explanation
@Kg.gibson
@Kg.gibson 4 жыл бұрын
great work thank u
@thecosmetrohub2737
@thecosmetrohub2737 Жыл бұрын
The best content ever
@mprasanth18
@mprasanth18 Жыл бұрын
Your videos are great. I would like you to pass function to setState and don't use any dependency in useCallback, so that only the age and salary component will be rerendered and the buttons will not be rerendered.
@shucheendrat.m6024
@shucheendrat.m6024 Жыл бұрын
Thanks for this video
@deepaknegi453
@deepaknegi453 4 жыл бұрын
@Codevolution, could you please tell me what color theme are you using for VS Code?
@achintyaagrawal
@achintyaagrawal 2 жыл бұрын
Really helpful
@itmazdoor7443
@itmazdoor7443 2 жыл бұрын
Thanks a lot 🙏
@DeepakRaghuwanshi04
@DeepakRaghuwanshi04 5 жыл бұрын
Hey buddy, I am following you from your first react video. You are good. When have you plan for redux videos?
@MuhammadWaqas-ux1zu
@MuhammadWaqas-ux1zu 4 жыл бұрын
Thanks you . very good
React Hooks Tutorial - 27 - useMemo Hook
10:41
Codevolution
Рет қаралды 222 М.
Learn React Hooks: useCallback - Simply Explained!
17:15
Cosden Solutions
Рет қаралды 75 М.
Smart Sigma Kid #funny #sigma #comedy
00:25
CRAZY GREAPA
Рет қаралды 5 МЛН
Was ist im Eis versteckt? 🧊 Coole Winter-Gadgets von Amazon
00:37
SMOL German
Рет қаралды 11 МЛН
Survival skills: A great idea with duct tape #survival #lifehacks #camping
00:27
React Hooks Tutorial - 25 - useState vs useReducer
4:19
Codevolution
Рет қаралды 122 М.
Why I avoid useEffect For API Calls and use React Query instead
17:45
Learn React useReducer Hook with Examples
14:19
Lama Dev
Рет қаралды 169 М.
Why Signals Are Better Than React Hooks
16:30
Web Dev Simplified
Рет қаралды 457 М.
React Hooks Tutorial - 18 - useReducer Hook
8:43
Codevolution
Рет қаралды 282 М.
Learn useMemo In 10 Minutes
10:42
Web Dev Simplified
Рет қаралды 467 М.
All useEffect Mistakes Every Junior React Developer Makes
22:23
Smart Sigma Kid #funny #sigma #comedy
00:25
CRAZY GREAPA
Рет қаралды 5 МЛН