6 State Mistakes Every Junior React Developer Makes

  Рет қаралды 261,550

Lama Dev

Lama Dev

Күн бұрын

React useState tutorial beginner to advanced. React useState best practices and solutions to the most common state problems. Functional update, white screen problem, derived states, 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
00:00 useState Functional Update (Why useState doesn't update immediately?)
02:54 React useState white screen problem fixed
05:56 React useState How to update a specific object property?
09:27 React How to change all inputs with a single onChange?
11:17 useState vs useReducer (When to use?)
12:53 Be careful about React derived states!

Пікірлер: 284
@lionelsamain2348
@lionelsamain2348 Жыл бұрын
Hey, I just wanted to let you know that I graduated this year. I finally have my Bachelor degree in management developement. And this is (partially) thanks to you ! I followed your Netflix tutorial and it helped me tremendously for one of my last assignments. So you can go to sleep tonight knowing you made someone else's life better. I'm 33 and this bachelor degree is my second one. I decided to study it while working for a job I hated in order to get out of it. It already opened so many opportunities to me and completely changed my professional life and my career perspectives. Thanks a lot, I'll keep following your videos because I learn so much every time.
@itsaaron6423
@itsaaron6423 Жыл бұрын
Woah am 23 and fretting about my whole life. I better find a job quickly....
@slipstream01
@slipstream01 Жыл бұрын
hey did the netflix tutorial help learn react or are you alread good with all the basics of reactt? i am going to try to code along with him in that tutorial so i can learn some more do you think its a good idea?
@shahemhaddad2717
@shahemhaddad2717 Жыл бұрын
@@itsaaron6423 Did u?
@itsaaron6423
@itsaaron6423 Жыл бұрын
@@shahemhaddad2717 yea got a job this week
@lionelsamain2348
@lionelsamain2348 Жыл бұрын
@@slipstream01 I was close to nowhere with React when I followed this. It's a lot to process though so maybe you should do a few tiny exercises to understand the very basics, then start with this. But whatever you do he explains everything he does so you'll be able to follow. But you might struggle to understand what you do. And if you don't understand, well you won't remember.
@sefakose4600
@sefakose4600 Жыл бұрын
Great content!! Please keep releasing these kind of videos about best practices or dos and don'ts in React. It helps a lot! Thanks for good work!
@johnsmith1789
@johnsmith1789 Жыл бұрын
Your insight is pure gold Lama Dev! Thanks for sharing your knowledge & experience~
@Corntrop
@Corntrop Жыл бұрын
Wow. I've been developing apps for months and I realized I didn't know 4 of them lol. Thanks for making us better developers. Please share other hooks too.
@sarcasticdna
@sarcasticdna Жыл бұрын
++
@alecssalecs8370
@alecssalecs8370 Жыл бұрын
Yes please ! Explain all the hooks, everybody needs a refresh and you are very good at explaining.
@1306dk
@1306dk Жыл бұрын
Great content as always. Ive been using your approach to handle forms ever since your last video about handling forms 👍
@zakidzz
@zakidzz Жыл бұрын
where is that vedio of forms can you please put the link here?
@1306dk
@1306dk Жыл бұрын
@@zakidzz kzbin.info/www/bejne/qnrHf5ilfdOce7s this one
@figgsboson
@figgsboson Жыл бұрын
hey, thank you so much for all your vids, especially on React hooks. I like that you make it simple to understand while maintaining content and the rationale behind it. Plus your voice and the way you speak is comforting haha, it helps with the stress of complex topics like this. thank you!
@rafayzia4180
@rafayzia4180 Жыл бұрын
Thank you for all this lama :) I learnt alot from you in the past year 🥳
@feriduncanselen9047
@feriduncanselen9047 Жыл бұрын
Hey Lama, I am going to start working tomorrow at my first software developer job. Thanks to your portfolio videos and other various videos I feel really confident for tomorrow. Thank you for uploading videos like this you are a life saver!
@ferdinandeke9590
@ferdinandeke9590 Жыл бұрын
And also, it would be lovely if we start using typescript in both our nodejs and react builds, that also will cut down a lot of these kind of errors. i don't know why no matter how much of tutorials i watch out there, i always still wait for you to implement such stacks before i really feel comfortable with them, cos your explanations sink so well in my brains at just a glance
@John-mj1kk
@John-mj1kk Жыл бұрын
Not using TypeScript is just asking for trouble and endless nights.
@bad_saurus
@bad_saurus Жыл бұрын
Such an informative video! Many thanks for your tutorials. I've learnt from you a lot!
@writegoodcode
@writegoodcode Жыл бұрын
for the last one, you could wrap the find one in usememo and pass the dependency as id, to prevent calculating it again and again when you have a lot of states.
@djbashan1662
@djbashan1662 Жыл бұрын
Nice tutorial, nice explanation of concepts. And before I forget,YES I want more videos on react hooks
@MathaGaram
@MathaGaram Жыл бұрын
What a refined explanation!!! .This guy knows the core issues that juniors unknowingly do.
@mariusj8542
@mariusj8542 Жыл бұрын
Spot on! I feel like a fool for not understanding that we could define the whole model/object in the initial useState,I have used the standard && every time I use map.
@xcrxwadda8287
@xcrxwadda8287 Жыл бұрын
Please make more educational videos like this ... They are very helpful and everyone loves them would suggest a tutorial how to use product management tool like Trello
@operupal
@operupal Жыл бұрын
Hello Lama, make please a video about useMemo, useCallback, useReducer)))
@youusef101
@youusef101 Жыл бұрын
you forgot a "please" in there
@operupal
@operupal Жыл бұрын
@@youusef101 corrected)
@youusef101
@youusef101 Жыл бұрын
@@operupal thank you
@terjeoseberg990
@terjeoseberg990 Жыл бұрын
@@operupal, The “please” should be before “make”.
@abdullahbelkaid1684
@abdullahbelkaid1684 Жыл бұрын
Woowwww i just started learning react last week and you gave me a bunch of informations with this video, thank you so much 💗💗
@robertogonzalezz_
@robertogonzalezz_ Жыл бұрын
Thank you for showing us the most common errors, you are very useful for us. ❤
@jotasenator
@jotasenator Жыл бұрын
this is gold, thanks for your time doing this video, and thinking about the proper examples, i will share this on my linkedin. Wish you the best. thank you once more
@jeffwang8660
@jeffwang8660 Жыл бұрын
It is amazing. I saw another KZbinr recommended to use useState individually for each state, but I feel your suggestion of using them as an object is much better. I am interested in useReducer. Could you talk about it as well. Thanks!
@raphaeljcm
@raphaeljcm Жыл бұрын
I've just found your channel, a lot of nice tips here. Thanks!
@mayanksinghal5913
@mayanksinghal5913 Жыл бұрын
Loved it brother, learning a lot ... Keep it up for us
@FidelGuajardo
@FidelGuajardo Жыл бұрын
I love the examples LamaDev uses. He really thinks beforehand about what code snippets are the best to explain concepts. He is a master teacher.
@ferdinandeke9590
@ferdinandeke9590 Жыл бұрын
great insights Lama, thanks. And yes please i would love to understand properly how the "useMemo" hooks and the likes of it used for performance optimization works, and how we could implement that to improve performance of our apps. thanks once more
@morphine496
@morphine496 Жыл бұрын
I'd love to see useMemo and useReducer sometime, thanks for everything, you really help us a lot.
@peacecoder
@peacecoder Жыл бұрын
We will more happy to see more such videos about react hooks and it's perfect use cases..❤️
@zihadprogrammer4246
@zihadprogrammer4246 Жыл бұрын
This video is so helpful. Please create this type of videos more.
@sajjadkazemi
@sajjadkazemi Жыл бұрын
Your examples are the best way to explain 👍🏻
@heguer87
@heguer87 Жыл бұрын
Amazing stuff. Thank you Lama!!!
@muneess2979
@muneess2979 Жыл бұрын
really great work.. keep it up.. expecting more videos like this... 🙏👏👏
@mohammedaamirmansuri5131
@mohammedaamirmansuri5131 Жыл бұрын
I was really helpful. Would love to watch more on useReducer hook
@anshulsaxena3513
@anshulsaxena3513 Жыл бұрын
yes definitely, please make a lecture on usereducer hook..... Thank you for this great tutorial sir, its kind one of the best and amazing
@damanpreetsingh8549
@damanpreetsingh8549 Жыл бұрын
I love this you should make more videos like this
@vlias500
@vlias500 Жыл бұрын
I do love your content man, best Lama teacher ever!)
@Arabian_Epileptic
@Arabian_Epileptic Жыл бұрын
Thanks Lama. I’m starting to love react. Use to love Vue most but now switched to react 💯
@uu-jq4nc
@uu-jq4nc Жыл бұрын
Well done Sir, an excellent example well executed. Thank you.
@aamiramin6112
@aamiramin6112 Жыл бұрын
Amazing very informative. Thanks for sharing
@ldblogs4uofficial1849
@ldblogs4uofficial1849 Жыл бұрын
Please create this type of video again this really helps Reducer context react toolkits And all the unable to understand hooks Thank you sir
@dr.science9609
@dr.science9609 Жыл бұрын
You are my teacher ❤️ if I reach success definitely I will mention you in all my success note And you will really present in my success note
@oleksandrvoichyshyn7486
@oleksandrvoichyshyn7486 Жыл бұрын
This is amazing, refresh memory, and remind what was forgotten. I would watch video about another hooks, and that hooks (noob, pro)
@chrisplacktor1992
@chrisplacktor1992 Жыл бұрын
Great video 👍👏 Please go deeper into the useReducer usage next video
@adriangora2415
@adriangora2415 Жыл бұрын
Hey, thanks for the interesting material. It would be nice to listen from you about useCallback/useReducer/useMemo, what's your opinion on reduce, are you trying to avoid due to the complexity of the code?
@Etubom
@Etubom Жыл бұрын
An absolute gem of an explainer video.Can't seem to find it in your github 2022 repo.
@Andrew_Essam
@Andrew_Essam Жыл бұрын
thank u so much that was super helpful and informative
@andgoedu
@andgoedu Жыл бұрын
Dude thanks alot i literally ran into this problem on back4app , and this enabled me to assign multiple properties seamlessly and organized
@andgoedu
@andgoedu Жыл бұрын
can i mention you in my tutorial as a reference ? for a better method than mine i am doing a typescript tutorial and this helped me out alot
@cesarfranciscobueno435
@cesarfranciscobueno435 Жыл бұрын
Thank you so much, i'm writting a code yesterday e thinking about how to write my code in a better way. There was a lot of States hahaha, so now today youtube show me your video and was what i need. You got a new subscribe.
@ludwigvillalba1886
@ludwigvillalba1886 Жыл бұрын
Thanks for sharing, Lama,
@boxboxboxboxbox
@boxboxboxboxbox Жыл бұрын
Hi, may i know what editor you are using? I see the feature of multiple lines editing, that is amazing
@norbertpascu6168
@norbertpascu6168 Жыл бұрын
Good video bro, good reminder for people going fast!
@MikdanJey
@MikdanJey Жыл бұрын
Great work, learning lot
@hassaanshah9819
@hassaanshah9819 Жыл бұрын
Nice tutorial. Thank you
@a.j.javier8119
@a.j.javier8119 Жыл бұрын
Very good video, sir. Keep it up!
@alinesouza9297
@alinesouza9297 Жыл бұрын
Great tips! Thank you
@user-uw5dv5el8m
@user-uw5dv5el8m Жыл бұрын
Very nice explaination . This one video solved my many problems.
@georgescuradu2275
@georgescuradu2275 Жыл бұрын
I’d love to watch a useReducer and context API tutorial from u. I watched the Redux one, but I personally believe context API is easier to understand.
@mayanksinghal5913
@mayanksinghal5913 Жыл бұрын
Very awesomely explained!
@niX.99
@niX.99 Жыл бұрын
Thanks lama, this video give me a new knowledge
@24capital75
@24capital75 Жыл бұрын
Great video lama dev can you please make a video on core differences between junior and senior dev
@farid.dev1
@farid.dev1 Жыл бұрын
Safak you are the best! Thank you! Please make a Full Stack app with TypeScript.
@blackstonejimmy
@blackstonejimmy Жыл бұрын
I'd love a more in-depth look at the useState -> useReducer example you showed - this hook always confuses me (the docs say it should be obvious if I'm familiar with Redux... however I am not familiar with Redux). Same with useMemo and some of the more obscure hooks actually - but I might just be getting greedy asking for them... fantastic video either way!
@kishoreandra
@kishoreandra Жыл бұрын
Hey lama, great video as always 🙏... Can you show the useReducer e.g. that you have advised with form e.g. in video please... Thank you
@codewithaaryan3489
@codewithaaryan3489 Жыл бұрын
This is very helpful Thank you 🙂 And Can you make another video of Redux like this
@chichebedarlington4360
@chichebedarlington4360 Жыл бұрын
Thanks for the update, you are just as good as John Smilga❤️
@bhosadraju5750
@bhosadraju5750 Жыл бұрын
Please make video on useReducer ...you are the greatest teacher i came across in my learning till now
@emanuelameh5722
@emanuelameh5722 Жыл бұрын
Thanks Lama for this insightful video. Can you please do a video of how to use useEffect hook properly?
@4BeerLife
@4BeerLife 11 ай бұрын
Please continue!
@JoffeDall
@JoffeDall Жыл бұрын
Please make this for the other hooks aswell, would be very useful
@itexpert4193
@itexpert4193 Жыл бұрын
good job.. keep it up
@okanozturk8604
@okanozturk8604 3 ай бұрын
Güzel açıklayıcı bir video olmuş hemşerim.Eline sağlık.
@MassHypnosis805
@MassHypnosis805 Жыл бұрын
Please do a reducer tutorial. This video was extremely helpful.
@stefanhupp7945
@stefanhupp7945 Жыл бұрын
Really nice videos. Thanks 🤗
@pouyamv9607
@pouyamv9607 Жыл бұрын
I just love the way you teach
@fizikodasi
@fizikodasi Жыл бұрын
Hazırlamış olduğunuz videolardan çok faydalanıyorum. Teşekkür ederim. Reducer konusunda yapacağınınız videoyu sabırla bekliyorum.
@otis3744
@otis3744 Жыл бұрын
love your work basically learned how to program from you... can we have typescript with react and ionic 😁 hopefully one day ill buy you a coffee to say thank you
@micaeldie8584
@micaeldie8584 Жыл бұрын
Great tutorial so precise, learn a lot if you can do some for useReducer it will be great. Much love from Côte d'ivoire 🇨🇮
@Behind-The-Scenes
@Behind-The-Scenes Жыл бұрын
You are a really great man.
@rubenverster250
@rubenverster250 Жыл бұрын
Haha. Man this is so good making me remember all the Junior mistakes I made like this years ago XD
@omersorhun4116
@omersorhun4116 Жыл бұрын
You are great :) Çok iyi iş çıkartmışsın abim.
@thesouthsidedev1812
@thesouthsidedev1812 Жыл бұрын
Thanks for this
@kingsgaming7278
@kingsgaming7278 Жыл бұрын
Nice Work!!!
@marcosMartinez-wm7bd
@marcosMartinez-wm7bd Жыл бұрын
great content! Please share other hooks too
@jvidalnunes
@jvidalnunes Жыл бұрын
Very useful. Tks a lot. I made some of these mistakes. Now, no more :D
@angelopavilando5967
@angelopavilando5967 Жыл бұрын
yo just saying. keep it up. learning new things from you always. 💓
@mikhailvasilev5798
@mikhailvasilev5798 Жыл бұрын
In the 4 part of your video, you would add the changeUser handler once on the form tag.
@tanmayjain5821
@tanmayjain5821 Жыл бұрын
I faced same issue yesterday and got its solution today while casually watching this video.
@rohittewari6902
@rohittewari6902 Жыл бұрын
Best video to understand useState and use it in the right way♥
@synt-x6458
@synt-x6458 Жыл бұрын
Great tutorial. Would be great if you can do the same for the other hooks
@user-dh4py6qj2h
@user-dh4py6qj2h Жыл бұрын
Thanks! It's great lesson! Yes, I'd like to see a useReducer :) I don't understand it...
@jesustzinon
@jesustzinon Жыл бұрын
Please do more videos about all hooks, like the useReducer!
@viniciusm.m.7822
@viniciusm.m.7822 Жыл бұрын
Thanks a lot, bro!!!!! Deus abençoe você!!!
@nick4bizz42
@nick4bizz42 Жыл бұрын
Great insight
@parmaryash4406
@parmaryash4406 Жыл бұрын
Really amazing video
@dravidjones8447
@dravidjones8447 Жыл бұрын
Thank you!
@ericsantoso1357
@ericsantoso1357 Жыл бұрын
hi, can you explain more deeper about how to handle complex input (section 5 : useState vs useReducer) and how to do another actions after category (select) changed if we used useReducer
@nileshnilu7902
@nileshnilu7902 Жыл бұрын
Very useful thanks❤
@marimuthur9456
@marimuthur9456 Жыл бұрын
Your really awesome 😎 thank you so much ☺️👌🏼👌🏼👌🏼
@yogeshdave2236
@yogeshdave2236 Жыл бұрын
Thank you so much.
@kingsgaming7278
@kingsgaming7278 Жыл бұрын
Nice Work
@welovephp
@welovephp Жыл бұрын
Can you do a video about useReducer, maybe expanding the example in this video? That will be great.
All useEffect Mistakes Every Junior React Developer Makes
22:23
Learn React useReducer Hook with Examples
14:19
Lama Dev
Рет қаралды 164 М.
Эта Мама Испортила Гендер-Пати 😂
00:40
Глеб Рандалайнен
Рет қаралды 3,1 МЛН
Stupid man 👨😂
00:20
Nadir Show
Рет қаралды 17 МЛН
State Managers Are Making Your Code Worse In React
13:33
Web Dev Simplified
Рет қаралды 134 М.
CSS Tips And Tricks I Wish I Knew Before
12:12
Lama Dev
Рет қаралды 391 М.
UseState: Asynchronous or what?
17:00
Jack Herrington
Рет қаралды 63 М.
Pure React vs Next.js | What’s Happening in React?
12:23
Lama Dev
Рет қаралды 52 М.
You Need React Query Now More Than Ever
11:04
Theo - t3․gg
Рет қаралды 135 М.
Learn TypeScript Generics In 13 Minutes
12:52
Web Dev Simplified
Рет қаралды 195 М.
ALL React Hooks Explained in 12 Minutes
12:21
Code Bootcamp
Рет қаралды 31 М.
3 React Mistakes, 1 App Killer
14:00
Jack Herrington
Рет қаралды 112 М.
This is the Only Right Way to Write React clean-code - SOLID
18:23
CSS Tips And Tricks 2 | I Wish Somebody Told Me Before
12:36
Lama Dev
Рет қаралды 35 М.
ЭТОТ ЗАБЫТЫЙ ФЛАГМАН СИЛЬНО ПОДЕШЕВЕЛ! Стоит купить...
12:54
Thebox - о технике и гаджетах
Рет қаралды 25 М.
Vortex Cannon vs Drone
20:44
Mark Rober
Рет қаралды 13 МЛН