ReactJS Course [4] - UseState Hook | States in React Tutorial

  Рет қаралды 59,129

PedroTech

PedroTech

Күн бұрын

Пікірлер: 171
@harshucore
@harshucore 7 ай бұрын
I've seen so many react videos, but no one has explained States this well. Thank you!
@Jaymson_
@Jaymson_ 2 жыл бұрын
I am glad that I found your channel. I finally started learning React week ago and your tutorials appeared at the perfect time. Thank you for your work!
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
Glad you liked it!
@arhamnaeem5820
@arhamnaeem5820 2 жыл бұрын
Thank machine learning for that
@mexiangel1994
@mexiangel1994 2 жыл бұрын
You have been one of the best teachers I have found on KZbin. I've been following your channel for awhile but this course has made your content even better..thanks for all your hard work. I can't wait to learn more.
@codewithegai
@codewithegai 2 жыл бұрын
He explains concept pretty well
@abdulkadirabdulrahman8258
@abdulkadirabdulrahman8258 Жыл бұрын
💗
@codewithegai
@codewithegai 2 жыл бұрын
A friend referred me to your channel. It's so refreshing, how you teach. Thanks buddy.
@SolzheBitsyn
@SolzheBitsyn Жыл бұрын
Your tutorials are so effective, it's unbelievable. All the other tutorials I've gone through are either a 10 minute video explaining broadly what React does, or a 4 hour-long in-depth project. Thank you so much, I will actually be prepared to hit the ground running at my internship because of your videos.
@achuntps0913
@achuntps0913 2 жыл бұрын
Day 4 the way you describe & give the examples is so useful! I'm not afraid to keep learning these lessons, thanks!
@daviddavid-vz9oo
@daviddavid-vz9oo Жыл бұрын
this is like just the best course on youtube like i spent like the last 3 weeks trying to learn react and i just found your channel and omg like you made it so easier and thanks so much man wish you the best you just saved me
@josecarlosparada3171
@josecarlosparada3171 2 жыл бұрын
You are going to save my internship, you explain the topics really good!
@adamlahchimi-zb9rc
@adamlahchimi-zb9rc 3 ай бұрын
bro you are killing it with this course you are the best web dev explainer on youtube i've found so far (btw i've in the tutorial hell for so long)
@AbhayRachanaikar
@AbhayRachanaikar 5 ай бұрын
I struggled so much with understanding State since a year but now I finally do, thanks dude
@dualwan
@dualwan 2 жыл бұрын
4th series and i find it very good... watch the roadmap also, he stated their that learn javascript first. i think we need to be comfortable first in javascript to master React. i like the excercises that has some catch, it will make us think as a programmer. i tried learning React a month ago with not much javascript and its very hard to grasp the concepts of react. it is much easier now. so good luck to all of us.
@nigelflim
@nigelflim 2 жыл бұрын
Really love that u put practical usage examples, keep up the great work!
@mansoorrr9167
@mansoorrr9167 Жыл бұрын
Pedro, thanks a lot brother!! I did all of it by myself 🙏💗 I saw a lot of tutorials but couldn't find anywhere this kind of explanation from scratch. You are doing a wonderful job teaching us 💚 Wish you the best man!!
@youseev
@youseev 10 ай бұрын
Your videos are great for learning React, you just get straight to the point.
@hadijafari5631
@hadijafari5631 2 жыл бұрын
Love the way you teaching, it's super sample and easy to learn. Thank you
@MohammedDanishKhan-g4d
@MohammedDanishKhan-g4d Жыл бұрын
Best channel for learning the react
@lrlrch8351
@lrlrch8351 9 ай бұрын
I have seen a lot of react tutorials for hooks but this is the first time I get the real idea 😮
@nkzsonicr
@nkzsonicr Жыл бұрын
Hi Petro, thanks very much for your hard work. I am coming from the Angular world and starting with React now and just bump in your courses while searching for something to learn on youtube and really, I just say that you have made an excelent work here. Compare to other courses / tutorials I was watching, your courses are very simple to understand and you try to show all the mechanisms in a simple way for beginners. Also courses are really nice structured and are build up on already learned step by step, greate respect here!!!😍😍
@ThorStore
@ThorStore Жыл бұрын
This course is amazing. I need to learn some react concepts in two days and I feel like I know so much already. Thank you!
@M4nudu45
@M4nudu45 2 жыл бұрын
Thanks for your courses Pedro, even if I'm working on React since one year I could understand more things thanks to you. Keep going it's awesome bro :D
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
Happy to hear that!
@mateuszanolla
@mateuszanolla 7 ай бұрын
Obrigado, cara. Tu é monstro.
@timnation4756
@timnation4756 2 жыл бұрын
Learnt alot about useState hook today, Thank you Pedro for putting all of this together for free.
@_saudi9
@_saudi9 Жыл бұрын
I want you to know that you provide content similar to many content makers, but in a professional, distinctive, very wonderful, excellent, dazzling, simple and enjoyable way, keep going bro, you the best
@visheshrathi4752
@visheshrathi4752 2 жыл бұрын
The way u have designed the content is awesome. Thanks for this
@pataka81
@pataka81 Жыл бұрын
Thanks Pedro, I learned a lot. For the solution I only use 1 function. Add a custom attribute to the button e.g op="inc", op="dec". Then check the op value with if else statement in the function to set count respectively.
@IdanItzhakov
@IdanItzhakov 2 жыл бұрын
Keep doing that, this is very helpful. Thank you, you're Amazing!😄
@vatansrivastava7279
@vatansrivastava7279 2 жыл бұрын
After searching all over the youtube for best react course Finally I found a channel that explain's the concepts of react js very well. thank you so much pedro.
@thebrighterworld9049
@thebrighterworld9049 2 жыл бұрын
Please, do more videos like this. You are on fire man, Keep going 🔥🔥🔥
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
Thanks! Will do!
@Matt-fm5ce
@Matt-fm5ce 5 ай бұрын
Amazing videos, thank you. Probably the best coding tutorials I've ever followed.
@conan501
@conan501 2 жыл бұрын
Great video, Pedro! Thanks!
@mathbydoing
@mathbydoing Жыл бұрын
So well explained, thank you. I used your first example with the age increase function to create a plus and minus counter. So easy! After struggling through another tutorial (from a famous channel!) I thought a counter app would be complicated. I thought React was overly complicated for little things that should be easy. After your excellent explanation, I am relieved and enjoy playing with these code snippets. And I know from previous programming languages that this is the start of becoming fluent.
@neeraj4210
@neeraj4210 2 жыл бұрын
Most effective tutorial for useState
@dickysoeryono2024
@dickysoeryono2024 Жыл бұрын
I would just happy to join if Pedro open online coding class. The way he describe everything is very clear!
@ugwuokeluke-zk9kx
@ugwuokeluke-zk9kx 3 ай бұрын
i am really impressed with your clarity sir
@digigoliath
@digigoliath 2 жыл бұрын
Nice. The video didn't feel very long. The topic was clearly explained.
@ahmednassar2536
@ahmednassar2536 Жыл бұрын
Very easy explanation, and it's a great way to deliver the message. Keep going, Pedro's
@hassanamin1385
@hassanamin1385 Жыл бұрын
You have just made my day explained sooo easy... amazing
@dixitGogoi32
@dixitGogoi32 Жыл бұрын
A very good playlist for absolute beginners in ReactJS like me ! Good explanation !
@kito4007
@kito4007 2 жыл бұрын
one of the best course on the KZbin U must make a website for you and provide all your courses on it 👍👍
@ElegantCoder
@ElegantCoder 2 жыл бұрын
This is going to be an awesome react series please keep posting you're helping thousands thanks
@oncoding4520
@oncoding4520 Жыл бұрын
I really love your course, because they are very simple but the logic is something that can be used. So for example I am not totally beginner at React but I remember that ""back in the days"" just to do the toggle was difficult from java script. Even your react beginner project that you posted this days was very cool. I hope you will have time to keep posting projects in the feature even though they are long because we as people that watch usually we are looking up for patterns of thinking. Keep pushing and dont forget you promise me to do a video how to do a github page with a template. Hope you will do it something clean and simple like not the usual like every body does
@WeAreByteableGames
@WeAreByteableGames 2 жыл бұрын
this content is golden, thanks for your hard work
@AdityaSingh-ex4bn
@AdityaSingh-ex4bn Жыл бұрын
Thanks a lot for these videos. I was struggling to learn react even after enrolling in a udemy course. Thank u so much
@Rose-gb1ku
@Rose-gb1ku 4 ай бұрын
Best explanation on states
@KellenBegin
@KellenBegin 2 жыл бұрын
thanks for the great video, I've been learning react for a bit and you're making it click
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
Great to hear!
@saharghoniem1348
@saharghoniem1348 2 жыл бұрын
your channel is the best in react
@annaaghajanyan4621
@annaaghajanyan4621 2 жыл бұрын
Really great examples for understanding the state in React, thanks a lot.
@dginvestor6483
@dginvestor6483 Жыл бұрын
I like the way you explained this is my second time to learn react
@rawrbearmedia1426
@rawrbearmedia1426 2 жыл бұрын
I've been following your channel for quite a while and I love your content. Your teaching style reminds me of Bucky Roberts from TheNewBoston, back when when he made coding videos. I've missed his stuff for years and now you're stepping up to fill the void. Thanks, man! Vote for Pedro! lol
@vinaypatil8009
@vinaypatil8009 2 жыл бұрын
Perfect video Nice example with clear explanation End exercise is also good 👌
@Geek_God16
@Geek_God16 6 ай бұрын
fantastic lecture on states with some really awesome examples.
@MerdokiyosMamo-c9u
@MerdokiyosMamo-c9u 10 ай бұрын
Pedro, i really start loving react after i start your video, bruh keep going❤❤❤
@newagecoder5417
@newagecoder5417 2 жыл бұрын
Ohh man I am really enjoying learning to react it's awesome. But especially thank you because you are giving us valuable knowledge
@wei7360
@wei7360 Жыл бұрын
For the exercise, I did the same thing but I used in-line functions that you taught us. { setCount(count + 1); }}> Increase { setCount(count - 1); }}> Decrease { setCount(0); }}> Set to Zero
@PRPS730
@PRPS730 Жыл бұрын
thats fine too, you could do this way or this way sine both give the same answer, but his way was a lil cleaner.
@andifaizal6848
@andifaizal6848 2 жыл бұрын
Thanks for sharing your knowledge Pedro. Awesome you're great.
@ji.dew1571
@ji.dew1571 2 жыл бұрын
I learned MERN when I was in 8th standard. forgot everything because of final exams. then learned twice in holidays before getting into 9th standard, got success, build a simple invoicing app on my own but after getting into the 9th standard, I was just playing FS19 for my entertainment and forgot everything twice. now learning for the third time, and this time i'm using linux to dont let games run on my pc. NOW FULLY FOCUSED ON LEARNINGS, BUT CURRENTLY IN 9th Standard and I will keep my learnings on. I KNEW THAT FAILURE IS A PART OF SUCCESS. NEVER GIVEUP. "IT TAKES 21 DAYS TO BUILD A HABIT, 90 DAYS TO BUILD A LIFESTYLE" So, just focus for 21 days and you will be familiar with coding..... Thanks PedroTech. I finally got the quality video I was looking for. 🥲🥲🥲🥲🥲🥲🥲🥲🥲🥲🥲🥲🥲🥲
@ji.dew1571
@ji.dew1571 2 жыл бұрын
the more earlier you starts, the more earlier you got it. keep learning, self-educating..
@linusmanuel
@linusmanuel 8 ай бұрын
My solution was to create a single function called counting and then I used a target element to compare its value to increase or decrease the count. And off course for the third possibility of I used an anonymous function to setCount to Zero. function App() { const [count, setCount] = useState(0); const counting = (event) => { const btnValue = event.target.value; btnValue === '+' ? setCount(count + 1) : setCount(count - 1); }; return ( Increase Decrease { setCount(0); }} > Set to Zero {count} ); }
@richardleungwoogabriel9317
@richardleungwoogabriel9317 2 жыл бұрын
My god love it. I'm learning react new also and glad I found your channel! Make me great!!
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
Welcome aboard!
@richardleungwoogabriel9317
@richardleungwoogabriel9317 2 жыл бұрын
@@PedroTechnologies I want to land a front end developer job just from your teachings!! If you had to start over what would you do and how. I have 6 months to change careers.
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
@@richardleungwoogabriel9317 I have a video on just that: kzbin.info/www/bejne/jn7Kf5p7mJ5nmpo
@ИннаБогданова-к4щ
@ИннаБогданова-к4щ 2 жыл бұрын
Pedro, awesome context as always
@_myenglishbro
@_myenglishbro Жыл бұрын
the best teacher!!!!
@guzalexandre
@guzalexandre 2 жыл бұрын
Você é muito bom. Não para. Já estudei react mesmo assim sempre tem o que aprender de você.
@Lucas-iq2we
@Lucas-iq2we Жыл бұрын
I tried to learn React 3 times before I came across your channel, now I'm learning it so easily, thanks a lot Pedro.
@seekingtruth9417
@seekingtruth9417 2 жыл бұрын
Hi Pedro, I am sticking to your series as the go to tutorial to master React. Can you please make a video on which theme, icon set and extensions you use. It will be super helpful.
@bshwin
@bshwin 2 жыл бұрын
Thank you for your time and effort.
@Powerful_Panda
@Powerful_Panda Жыл бұрын
Thank you for your work. I really appreciate it. You really make me love react and that's amazing.
@priyankathakor2174
@priyankathakor2174 Жыл бұрын
Thank you for this ..❤
@samuelo.francis5964
@samuelo.francis5964 Жыл бұрын
I really appreciate the work you put in, thank you so much.
@eddyelamin9015
@eddyelamin9015 2 жыл бұрын
I really appreciate the work you put in Pedro thanks
@rahilkapur2604
@rahilkapur2604 2 жыл бұрын
Love the videos man keep up the great work!
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
Glad you like them!
@farzinfaezirazi361
@farzinfaezirazi361 Жыл бұрын
Very informative React series. Thank you
@GODFATHERZAHER
@GODFATHERZAHER Жыл бұрын
A very very nice way to explain as expected❤
@hssageni9893
@hssageni9893 Жыл бұрын
I really appreciate your work I enjoyed the episodes your way of explanation is awesome and simple I loved it your student from Morocco 🧡
@adamlahchimi-zb9rc
@adamlahchimi-zb9rc 3 ай бұрын
7ta ana :)
@hssageni9893
@hssageni9893 2 ай бұрын
@@adamlahchimi-zb9rc oyyyy fyn kmlti lcourse?
@amirsalehi3643
@amirsalehi3643 2 жыл бұрын
I really enjoy your videos. Keep going and please teach useEffect!
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
Episode 6 is about React Lifecycle and UseEffect!!!! :)
@shariifomar9985
@shariifomar9985 2 жыл бұрын
Your code is clean & understandable thanks alot
@fazaljarral2792
@fazaljarral2792 2 жыл бұрын
Finally understood useState :)
@the_brand_booster
@the_brand_booster 2 жыл бұрын
Brother, you are amazing ❤ I was too late to find you😅 But now i am very confident.. i can learn react 😅😅
@alessandroscimone5463
@alessandroscimone5463 Жыл бұрын
I finally got it!!! 😂 Thanks my friend!
@autovlogs5126
@autovlogs5126 2 жыл бұрын
Don't get demotivate by views make full series one day your channel wil hit . I am sharing your video to frnds too . Now it's our responsible to grow your channel 🤘 Thank you
@מעייןאוליאל-כ1ב
@מעייןאוליאל-כ1ב 10 ай бұрын
You explain amazingly!
@rosmildolopes3985
@rosmildolopes3985 Жыл бұрын
Thank you for taking your time to help us
@divyarajsinhchampavat2873
@divyarajsinhchampavat2873 2 жыл бұрын
Muah bro your videos help me alot for react learning thank you so much ❤️ bro
@wangwang-official
@wangwang-official Жыл бұрын
dude you're amazing thank you
@white.93
@white.93 Жыл бұрын
Really helpful, thank you Petro
@elderwand663
@elderwand663 2 жыл бұрын
Will you use Firebase as a backend for the Full Stack Application in this course? And will that include deployment? Always been eager to build and deploy apps with React & firebase but never found a series like yours. You explain things in layman's terms instead of throwing technical jargon right off the bat.Really Enjoyed the course so far!!!! Thank you❤
@abhijithsubash6160
@abhijithsubash6160 Жыл бұрын
One tip from me: you can now use option + tab to switch between the windows. 🤟
@mutsamutepfa
@mutsamutepfa 4 ай бұрын
great work Pedro👍
@daivarajackiene9048
@daivarajackiene9048 2 жыл бұрын
very clear, thanks
@andrewandrosow4797
@andrewandrosow4797 5 ай бұрын
Good video! But where is explanation about a calback function? I mean a parameter of the setter function: for example - setSomeValue(x=>x+1).
@user-foris
@user-foris 2 жыл бұрын
I have a question to make. I have been writing react for a few months now. The only thing that you didn't mention is a problem i run sometimes into while using states. The problem is if u have a function that changes the state of a state variable and then you try to do something depending on the state of that variable inside of the same function the case is that the setter for the state hasn't yet changed the variable. I don't know what's wrong with it but a solution i found while experiementing was that i used the useEffect hook so that if the state changes then i get to have the states current value and check whatever it is that i wanted to.
@sonamohialdin3376
@sonamohialdin3376 2 жыл бұрын
So good tutorial clear explanation
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
Glad it was helpful!
@WarframeCrunch
@WarframeCrunch Жыл бұрын
25:40 If I remember correctly method, the count method here is wrong, it always should be "prev => prev + 1" , it always have to be tight to previous value, otherwise sometimes react can count twice. It is because of React Strick mode which you use during proces of creating, which also help you find errors like something counting twice in strick mode which means that the code isn't 100% correctly written and might give errors in some situation.
@Salah-YT
@Salah-YT 2 жыл бұрын
thank u so much bro well done for nice video
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
Glad you liked it!
@syedhamz801
@syedhamz801 6 ай бұрын
Easy and well explained
@KostyaShn0beL
@KostyaShn0beL 2 жыл бұрын
Hey! Great video, as always Do you plan to record a small vid about useEffect? Thats the only hook that I don’t get at all 😢
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
It will be episode 6! I am preparing a good video for it :)
@hamzazaman9903
@hamzazaman9903 2 жыл бұрын
He also has another series like this that explains useEffect, though it is a little less professional but very much enlightening
@rhiannonmonks6894
@rhiannonmonks6894 2 жыл бұрын
This is a beautiful video.
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
Thank you very much!
@chase4972
@chase4972 7 ай бұрын
It's cool. I thought you were supposed to update the state based on the previous state....
@38911bytefree
@38911bytefree Жыл бұрын
Thanks so much Pedro.
@ongi27
@ongi27 10 ай бұрын
Bro u saved my life ❤❤❤❤❤❤
@Kennomie
@Kennomie 2 жыл бұрын
great video, keep it up please
@newagecoder5417
@newagecoder5417 2 жыл бұрын
Pedro sir because of you can solve every exercise at the end of the video
ReactJS Course [5] - CRUD In React | TodoList Tutorial
41:18
PedroTech
Рет қаралды 99 М.
ReactJS Course [7] - How To Fetch Data From an API in React
30:20
When Cucumbers Meet PVC Pipe The Results Are Wild! 🤭
00:44
Crafty Buddy
Рет қаралды 58 МЛН
React useState() hook introduction 🎣
16:33
Bro Code
Рет қаралды 34 М.
Why Signals Are Better Than React Hooks
16:30
Web Dev Simplified
Рет қаралды 488 М.
All The JavaScript You Need To Know For React
28:00
PedroTech
Рет қаралды 654 М.
Learn React Hooks: useRef - Simply Explained!
12:42
Cosden Solutions
Рет қаралды 112 М.
When Cucumbers Meet PVC Pipe The Results Are Wild! 🤭
00:44
Crafty Buddy
Рет қаралды 58 МЛН