Learn React useReducer Hook with Examples

  Рет қаралды 169,660

Lama Dev

Lama Dev

Күн бұрын

React useReducer tutorial. How to use useReducer? When to use useReducer? useState vs useReducer. useReducer best practices and more.
For more projects you can support Lama Dev:
Join: / @lamadev
Buy me a coffee: www.buymeacoffee.com/lamadev
Join Lama Dev groups
Facebook: / lamadev
Instagram: / lamawebdev
Discord: / discord
Twitter: / lamawebdev
Source Code: github.com/safak/youtube2022/...
0:00 What is useReducer Hook?
01:03 useState vs useReducer
03:23 useReducer Tutorial
09:03 useReducer Form Example

Пікірлер: 268
@emilworken7635
@emilworken7635 Жыл бұрын
Probably one of the best explanations I've seen on React Hooks. What i particularly like is the structure of the video: 1) Introducing the hook and it's use cases in short 2) Explain alternative methods (useState) that are easy to use , although can be made better (useReducer) 3) Start with an easy example and structure of Syntax 4) Progress to more advanced example The pace is perfect and explanations are top-tier. Really liked how you built in a useRef example as well, as this is something that junior devs can have a similar feeling around when it comes to use it compared to e.g useState and handleChange for a specific input-field. 10/10.
@shujin9027
@shujin9027 Жыл бұрын
He forgot to say "use mobx" at the end
@nirmalshah9947
@nirmalshah9947 Жыл бұрын
There we go, there we fucking go. Was just wondering the other day when I watched the junior dev mistakes videos that I wish Lama would make one on useReducer and you read my mind!
@ramiov3862
@ramiov3862 Жыл бұрын
I've realy never seen any one who explains React hooks so well and all it's possible uses as well as what mistakes to avoid, This kind of knowledge is really what we are missing as junior developers, And i realy appreciate the effort man Thanks !
@a4yster
@a4yster 11 ай бұрын
Not sure why its easier to understand your way of explanation but it definitely is. Probably it's about voice - you are very calm and well paced. Like Neagoie is overly ecstatic, Schwarzmuller is explaining like he is a drill sergeant in the army, Fireship takes an entire 3.7 seconds to explain even the most complex topic. You, meanwhile, keep the consistent pace.
@SushilKumar-ig8ls
@SushilKumar-ig8ls Жыл бұрын
Such a simple explanation and great way to handle large states. LOVED IT ♥
@FoodBitesTV
@FoodBitesTV Жыл бұрын
This tutorial is really great! I appreciate the extra effort showing process diagram and explanation on each parameters&arguments which actually help to better understand. thanks a lot
@LakmalHckz
@LakmalHckz Жыл бұрын
Usually, I'm so lazy to write a comment. But just wanted to mention how great your tutorials are! Even the react doc itself didn't explain the hooks this well. Please continue to create more and more great contet! Thank you!
@jasonlu6405
@jasonlu6405 Жыл бұрын
This is so informative but easy to understand! Please make a series about Hooks and their use cases. Thanks in advance!
@karthikraju6225
@karthikraju6225 Жыл бұрын
This is such an amazing series about React hooks. Will be using this a lot for reference. Thank you so much!!!
@alfathmuqoddas6986
@alfathmuqoddas6986 Жыл бұрын
Your tutorial is always simple, concise, and easy to follow, thank you!
@berrieberrie1555
@berrieberrie1555 Жыл бұрын
ahh really loves how you teach us, simple and touch the basic fundamentals of JS/React ^^ thank you sir
@morphine496
@morphine496 Жыл бұрын
Daaamn, exactly what I was looking for, I have a job interview in 5 days and this is going to help me a lot with the app I have to create. Thanks for sharing this with us Lama.
@alidurul2597
@alidurul2597 11 ай бұрын
Yeah this is the video I was looking to watch for this topic. Thank You ..
@MathaGaram
@MathaGaram Жыл бұрын
There are lots of people who know the concepts very well, but very few can explain to the pin point. This guy is on of them.
@gamergently
@gamergently Жыл бұрын
Man! This is the easiest to understand tutorial I have tried many times and read many articles. THank you!
@kenhard
@kenhard Жыл бұрын
Clean explanation, easy to watch, and overall great video, this is really helpful. Thank you so much!
@zillboy
@zillboy Жыл бұрын
Dear Mr.Lama Dev, Keep these videos coming, this helps improve us going from junior to senior dev. :)
@luizarnoldchavezburgos3638
@luizarnoldchavezburgos3638 Жыл бұрын
Lama keep doing this serie of videos. I will support you, I have shared to my friends too. Thanks for the explanation.
@bilpo4729
@bilpo4729 Жыл бұрын
Thank you for this amazing example!
@osho4609
@osho4609 8 ай бұрын
No words for the knowledge man!
@webhook4729
@webhook4729 Жыл бұрын
Awesome Video...Always Wating for lama's tutorial
@marvikfr
@marvikfr Жыл бұрын
Hey Lama ! Big "Merci" from a french guy in France, for all your videos and explanations very clean !!
@CCDEJENE_
@CCDEJENE_ Жыл бұрын
Thanks for the clear explanation!
@nithish1742
@nithish1742 10 ай бұрын
One of the best explanations I have ever seen
@dubaifatimaali
@dubaifatimaali Жыл бұрын
Definitely going to try it. Thanks and keep on posting.
@mehmetnadi8930
@mehmetnadi8930 Жыл бұрын
please do not stop making awesome tutorials! laerned so much from you! thank you
@estebansalazar5194
@estebansalazar5194 Жыл бұрын
grats bro, your explanation was so well. I just started to work in my job with context accompanied by useReducer and typescript and i had been so confused principally because i hadn't had experience with this hook so far. But this video lit me up like the morning lights. Thanks so much i appreciate your effort doing this kind of videos :)
@andrijadenic4586
@andrijadenic4586 Жыл бұрын
I can't belive how awesome you are! Please keep teaching us in simple English as you do. Wish you all the best!
@ShubhamSingh-gk8vp
@ShubhamSingh-gk8vp Жыл бұрын
Omg i was just learning useReducer ! Awesome video !!!!!
@digvijayyamagekar4300
@digvijayyamagekar4300 Жыл бұрын
after watching 10 videos could not understand anything then luckily found this one the best and easy explantion for useReducer hook thank
@mraaroncruz
@mraaroncruz Жыл бұрын
Dense and well explained. Thank you!
@discoveryspecial903
@discoveryspecial903 Жыл бұрын
Thanks, Lama Dev for posting the video on useReducer(), is very useful to us! Easy & Understood!
@salahaldeenalshaikhkhalil6328
@salahaldeenalshaikhkhalil6328 Жыл бұрын
I was trying to understand useRedusers hook, I couldnt understand it till I watched your video. THANKS.
@francescoPace27
@francescoPace27 Жыл бұрын
You are such a great teacher! Thank you very much for your work and keep going!
@nageshwararaov118
@nageshwararaov118 Жыл бұрын
You are really helping us a lot with these tutorials, keep continuing..
@user-wx7vq6pb2v
@user-wx7vq6pb2v Жыл бұрын
Clean explanation ❤, Thank you so much
@letsdoitsatumare
@letsdoitsatumare Жыл бұрын
Great work, Lama!
@jonaskromwell4464
@jonaskromwell4464 Жыл бұрын
Thank you for the explanation. I find this surprisingly familiar. I have structured many of my functions in just this way without ever realizing useReducer's function. I often use enums to enforce types and nrver have to worry with passing strings or misspelled parameters. I don't see as much use for useReducer as I had expected. Thank you for the clarity.
@saljeshmaharjan6760
@saljeshmaharjan6760 10 ай бұрын
such a wonderful explanation, thank you
@nikolaskadric7093
@nikolaskadric7093 Жыл бұрын
best tutorials on youtube, love your work bro ❤
@codingandEnglishlearning
@codingandEnglishlearning Жыл бұрын
I like the way he explained everything about useReducer hook 🪝 in detail. I found the resources very helpful after a series of searches on KZbin. Much much better explanation. Thanks for sharing valuable information. 😀
@rpesc7918
@rpesc7918 Жыл бұрын
I've steered clear of useReducer because I thought it was just to complex, but you just changed my mind. Very well written and explained 💯. Could you cover navigation & routing at some point. The react router can get crazy when having nested routes 🤔
@kishoreandra
@kishoreandra Жыл бұрын
yet another informative video, thanks Lama 🙌
@chamonmath7688
@chamonmath7688 Жыл бұрын
This is very helpful. It's one thing to explain it, but the way he shows visually where things go with his cursor how things are connected, and it goes from here to there. Even gives a little flow chart and uses an example that I'm used to seeing with useState and then shows it's similiarty on how it's done with useReducer and cleans up the code. All around Great stuff the video was short too. 👍
@user-vu9dl3vn7l
@user-vu9dl3vn7l Ай бұрын
This video is really helpful! Thank you so much! ❤
@georgesword2012
@georgesword2012 Жыл бұрын
Thanks ❤ One of the best tutorials about useReducer hook ❤️
@alainrakotoarivelo7651
@alainrakotoarivelo7651 9 ай бұрын
Thank you for sharing this tutorial about useReducer ❤
@asvicnal8483
@asvicnal8483 Жыл бұрын
This really helps a lot, Thanks.
@ngouendgerard4114
@ngouendgerard4114 Жыл бұрын
Thanks you Lama Dev, I use these hooks for months bit it still seems confuse to me, but when come to your tutorials and explanation. I got right what's happening and I'm very delighted. Thanks you for your so concern for us. It's amazing Dev Lama
@user-og4yo1kh9u
@user-og4yo1kh9u Жыл бұрын
Great explanation Lama Dev
@gustavomanca
@gustavomanca Жыл бұрын
This is one of the best explanations I've ever seen 🙌
@Fer0710
@Fer0710 Жыл бұрын
This is a great explanation on how to implement the userReducer hook
@kamonahmedreal
@kamonahmedreal Жыл бұрын
love you sir, been wait for a long time
@learningRedux
@learningRedux Жыл бұрын
Thank you, so helpful!
@mohammed.haydar
@mohammed.haydar Жыл бұрын
This is absolutely and beautifully explained
@hn031
@hn031 Жыл бұрын
Thanks, man. Subscribed.
@usmanmalik3575
@usmanmalik3575 Жыл бұрын
Lama thank you so much for everything, you are a true legend 🙌🙏
@rastapoile
@rastapoile Жыл бұрын
Thanks a lot for your videos !
@shahemhaddad2717
@shahemhaddad2717 Жыл бұрын
Man your videos are fabulous keep going 👌
@wahidsakib
@wahidsakib Жыл бұрын
I was struggling with useReducer, Oh man! You saved me.
@xcrxwadda8287
@xcrxwadda8287 Жыл бұрын
Thanks for this... keep dropping such topics ... very helpful , God bless you Lama
@testingaccount5867
@testingaccount5867 Жыл бұрын
i felt like you even touched me the context api and redux which i had a hard time learning it for months.
@nicodipi
@nicodipi Жыл бұрын
Great video man!
@zuzukouzina-original
@zuzukouzina-original Жыл бұрын
You’re very good bro! You make me a senior dev!!!
@bhavyakothari9667
@bhavyakothari9667 Жыл бұрын
Amazing explanation. Wonderful and useReducer is unforgettable now :)
@MikdanJey
@MikdanJey Жыл бұрын
Excellent explanation 👍🏼
@psyferinc.3573
@psyferinc.3573 Жыл бұрын
i so love your process.
@thesouthsidedev1812
@thesouthsidedev1812 Жыл бұрын
Thank you fro this series
@kvazimode2
@kvazimode2 Жыл бұрын
Bravo! Thank you!
@alexandrsachishin962
@alexandrsachishin962 Жыл бұрын
thats nice, thanks you so much! I would like to add two tips: 1) we can create actions and action creators like in redux to handle different action types 2) we can create general action type for increasing and decreasing count because the difference here is only in the number (positive or negative)
@jayantvasantkenjalkar6798
@jayantvasantkenjalkar6798 9 ай бұрын
you are awesome, a quality explanation i can see here !!
@harvard004
@harvard004 2 ай бұрын
This it the best useReducer tutorial on the web.
@davidmukalay3536
@davidmukalay3536 Жыл бұрын
One of the most useful React skill have learned so far
@user-ty5pd4xw2y
@user-ty5pd4xw2y Жыл бұрын
thanks Lama! for your excellent tutorials and content! by thank you I mean joining the sponsoring group))
@LamaDev
@LamaDev Жыл бұрын
Thanks for your support :)
@luanalves3419
@luanalves3419 Жыл бұрын
Great content!! greeting from Brazil
@Abhisumant03
@Abhisumant03 Жыл бұрын
U said it and u did it . "If u have playlist u will definitely save this video there and yus i did ." One of the best video ever for usereducer hook ❤️❤️❤️❤️ thanks . Pls keep making such small videos by taking these important topics .
@parmaryash4406
@parmaryash4406 Жыл бұрын
Amazing series
@mishucodes6982
@mishucodes6982 Жыл бұрын
Amazing video thank you so much bro ❣
@loyaltythameem
@loyaltythameem Жыл бұрын
Wow really awesome 👍😎. Thanks brother
@ToumaRenshi
@ToumaRenshi Жыл бұрын
I don't know how else to comment here. This is the most understandable and very explained how to use useReducer for beginners. I watched a few videos, but this material is a golden shot. Greeting from Poland. :)
@orashusedmund7675
@orashusedmund7675 11 ай бұрын
thank you very much sir. this was so clear.
@noobdev4181
@noobdev4181 Жыл бұрын
Great explanation. I just found your channel today. Subscribed. Thank you. Please do a playlist explaining all available react hooks. 💙
@marcusviniciuskoch550
@marcusviniciuskoch550 Жыл бұрын
incredible content, ill try to use it on my job
@ImranKhan-ft7ns
@ImranKhan-ft7ns Жыл бұрын
Thank you.. Your explanation is beginner friendly
@parmaryash4406
@parmaryash4406 Жыл бұрын
Amazing explaination
@jhonsalas5756
@jhonsalas5756 Жыл бұрын
this is gold, im gonna try it and make it better
@cedwards1080
@cedwards1080 Жыл бұрын
Great video!!!
@adityagoswami6881
@adityagoswami6881 15 күн бұрын
Very informative .Thank you Sir 💯🙏
@parassharma7041
@parassharma7041 Жыл бұрын
Love your channel thank you
@PLifes
@PLifes Жыл бұрын
Awesome!
@mahmoodnazari1004
@mahmoodnazari1004 Жыл бұрын
One of the best tutorial I've ever seen. Could you please make a video about using useReducer with a multi-step form.🙏
@havefun5519
@havefun5519 Жыл бұрын
Clear explanation, thx
@tanvirazad49
@tanvirazad49 Жыл бұрын
very much helpful!
@viniciusm.m.7822
@viniciusm.m.7822 Жыл бұрын
Thanks, bro!! God bless you!
@moreddy
@moreddy Жыл бұрын
as always...you're the best on planet...THX A LOT....great explanation !!!
@aishvaryamohite5985
@aishvaryamohite5985 5 ай бұрын
Very nice video...I get a very much idea ...only 15 min of your video...thank you🎉
@harshpanchal2607
@harshpanchal2607 Жыл бұрын
Great explanations
@roshanpaudel6352
@roshanpaudel6352 10 ай бұрын
Nice kind of explanation ❤
@avrozaman8737
@avrozaman8737 Жыл бұрын
Thank you so much for making this kind of helpful video..you are great boss.. We need more video like this.. Take love❤️
@touseefghazanfar8487
@touseefghazanfar8487 Жыл бұрын
Great tutorial
Learn useMemo and React Memo for Faster Apps
10:02
Lama Dev
Рет қаралды 70 М.
6 State Mistakes Every Junior React Developer Makes
15:53
Lama Dev
Рет қаралды 264 М.
Smart Sigma Kid #funny #sigma #comedy
00:25
CRAZY GREAPA
Рет қаралды 8 МЛН
MEGA BOXES ARE BACK!!!
08:53
Brawl Stars
Рет қаралды 34 МЛН
Survival skills: A great idea with duct tape #survival #lifehacks #camping
00:27
DO YOU HAVE FRIENDS LIKE THIS?
00:17
dednahype
Рет қаралды 42 МЛН
All useEffect Mistakes Every Junior React Developer Makes
22:23
Top 6 React Hook Mistakes Beginners Make
21:18
Web Dev Simplified
Рет қаралды 561 М.
Why Signals Are Better Than React Hooks
16:30
Web Dev Simplified
Рет қаралды 458 М.
Learn useReducer In 20 Minutes
20:12
Web Dev Simplified
Рет қаралды 492 М.
ALL React Hooks Explained in 12 Minutes
12:21
Code Bootcamp
Рет қаралды 90 М.
React Hooks: useReducer
12:12
Sam Meech-Ward
Рет қаралды 4,2 М.
Comprendre le hook useReducer de React
35:51
Atomic React
Рет қаралды 4,8 М.
CSS Tips And Tricks I Wish I Knew Before
12:12
Lama Dev
Рет қаралды 438 М.
YOTAPHONE 2 - СПУСТЯ 10 ЛЕТ
15:13
ЗЕ МАККЕРС
Рет қаралды 149 М.
Main filter..
0:15
CikoYt
Рет қаралды 13 МЛН
Ультрабюджетная игровая мышь? 💀
1:00