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

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

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
@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.
@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 Жыл бұрын
💗
@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
@codewithegai
@codewithegai 2 жыл бұрын
A friend referred me to your channel. It's so refreshing, how you teach. Thanks buddy.
@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)
@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.
@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!
@josecarlosparada3171
@josecarlosparada3171 2 жыл бұрын
You are going to save my internship, you explain the topics really good!
@mateuszanolla
@mateuszanolla 8 ай бұрын
Obrigado, cara. Tu é monstro.
@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.
@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!!!😍😍
@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!!
@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.
@_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
@MohammedDanishKhan-g4d
@MohammedDanishKhan-g4d Жыл бұрын
Best channel for learning the react
@nigelflim
@nigelflim 2 жыл бұрын
Really love that u put practical usage examples, keep up the great work!
@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!
@neeraj4210
@neeraj4210 2 жыл бұрын
Most effective tutorial for useState
@conan501
@conan501 2 жыл бұрын
Great video, Pedro! Thanks!
@AbhayRachanaikar
@AbhayRachanaikar 6 ай бұрын
I struggled so much with understanding State since a year but now I finally do, thanks dude
@lrlrch8351
@lrlrch8351 10 ай бұрын
I have seen a lot of react tutorials for hooks but this is the first time I get the real idea 😮
@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.
@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
@timnation4756
@timnation4756 2 жыл бұрын
Learnt alot about useState hook today, Thank you Pedro for putting all of this together for free.
@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.
@ugwuokeluke-zk9kx
@ugwuokeluke-zk9kx 3 ай бұрын
i am really impressed with your clarity sir
@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!
@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.
@Matt-fm5ce
@Matt-fm5ce 5 ай бұрын
Amazing videos, thank you. Probably the best coding tutorials I've ever followed.
@visheshrathi4752
@visheshrathi4752 2 жыл бұрын
The way u have designed the content is awesome. Thanks for this
@thebrighterworld9049
@thebrighterworld9049 2 жыл бұрын
Please, do more videos like this. You are on fire man, Keep going 🔥🔥🔥
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
Thanks! Will do!
@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
@Rose-gb1ku
@Rose-gb1ku 4 ай бұрын
Best explanation on states
@saharghoniem1348
@saharghoniem1348 2 жыл бұрын
your channel is the best in react
@IdanItzhakov
@IdanItzhakov 2 жыл бұрын
Keep doing that, this is very helpful. Thank you, you're Amazing!😄
@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
@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
@dickysoeryono2024
@dickysoeryono2024 Жыл бұрын
I would just happy to join if Pedro open online coding class. The way he describe everything is very clear!
@hassanamin1385
@hassanamin1385 Жыл бұрын
You have just made my day explained sooo easy... amazing
@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 👍👍
@ahmednassar2536
@ahmednassar2536 Жыл бұрын
Very easy explanation, and it's a great way to deliver the message. Keep going, Pedro's
@digigoliath
@digigoliath 2 жыл бұрын
Nice. The video didn't feel very long. The topic was clearly explained.
@dixitGogoi32
@dixitGogoi32 Жыл бұрын
A very good playlist for absolute beginners in ReactJS like me ! Good explanation !
@priyankathakor2174
@priyankathakor2174 Жыл бұрын
Thank you for this ..❤
@WeAreByteableGames
@WeAreByteableGames 2 жыл бұрын
this content is golden, thanks for your hard work
@ElegantCoder
@ElegantCoder 2 жыл бұрын
This is going to be an awesome react series please keep posting you're helping thousands thanks
@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!
@ИннаБогданова-к4щ
@ИннаБогданова-к4щ 2 жыл бұрын
Pedro, awesome context as always
@Geek_God16
@Geek_God16 6 ай бұрын
fantastic lecture on states with some really awesome examples.
@dginvestor6483
@dginvestor6483 Жыл бұрын
I like the way you explained this is my second time to learn react
@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} ); }
@_myenglishbro
@_myenglishbro Жыл бұрын
the best teacher!!!!
@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..
@bshwin
@bshwin 2 жыл бұрын
Thank you for your time and effort.
@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
@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.
@guzalexandre
@guzalexandre 2 жыл бұрын
Você é muito bom. Não para. Já estudei react mesmo assim sempre tem o que aprender de você.
@rahilkapur2604
@rahilkapur2604 2 жыл бұрын
Love the videos man keep up the great work!
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
Glad you like them!
@vinaypatil8009
@vinaypatil8009 2 жыл бұрын
Perfect video Nice example with clear explanation End exercise is also good 👌
@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.
@farzinfaezirazi361
@farzinfaezirazi361 Жыл бұрын
Very informative React series. Thank you
@andifaizal6848
@andifaizal6848 2 жыл бұрын
Thanks for sharing your knowledge Pedro. Awesome you're great.
@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.
@fazaljarral2792
@fazaljarral2792 2 жыл бұрын
Finally understood useState :)
@alessandroscimone5463
@alessandroscimone5463 Жыл бұрын
I finally got it!!! 😂 Thanks my friend!
@מעייןאוליאל-כ1ב
@מעייןאוליאל-כ1ב 11 ай бұрын
You explain amazingly!
@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
@annaaghajanyan4621
@annaaghajanyan4621 2 жыл бұрын
Really great examples for understanding the state in React, thanks a lot.
@MerdokiyosMamo-c9u
@MerdokiyosMamo-c9u 10 ай бұрын
Pedro, i really start loving react after i start your video, bruh keep going❤❤❤
@Salah-YT
@Salah-YT 2 жыл бұрын
thank u so much bro well done for nice video
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
Glad you liked it!
@wangwang-official
@wangwang-official Жыл бұрын
dude you're amazing thank you
@GODFATHERZAHER
@GODFATHERZAHER Жыл бұрын
A very very nice way to explain as expected❤
@shariifomar9985
@shariifomar9985 2 жыл бұрын
Your code is clean & understandable thanks alot
@beckyb9215
@beckyb9215 2 жыл бұрын
you could also write it like this: setCount(count + 1)}>Increase setCount(count - 1)}>Decrease setCount(0)}>Set to zero
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
Yes!
@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❤
@samuelo.francis5964
@samuelo.francis5964 2 жыл бұрын
I really appreciate the work you put in, thank you so much.
@rosmildolopes3985
@rosmildolopes3985 Жыл бұрын
Thank you for taking your time to help us
@white.93
@white.93 Жыл бұрын
Really helpful, thank you Petro
@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 😅😅
@Powerful_Panda
@Powerful_Panda 2 жыл бұрын
Thank you for your work. I really appreciate it. You really make me love react and that's amazing.
@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
@mutsamutepfa
@mutsamutepfa 4 ай бұрын
great work Pedro👍
@abhijithsubash6160
@abhijithsubash6160 Жыл бұрын
One tip from me: you can now use option + tab to switch between the windows. 🤟
@sonamohialdin3376
@sonamohialdin3376 2 жыл бұрын
So good tutorial clear explanation
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
Glad it was helpful!
@eddyelamin9015
@eddyelamin9015 2 жыл бұрын
I really appreciate the work you put in Pedro thanks
@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
@АлександрГринёв-г5я
@АлександрГринёв-г5я 9 ай бұрын
Hi, why when I tiping for example "event.target." I don't see the intellisense tips (value)?
@shamilaliev2119
@shamilaliev2119 Жыл бұрын
Pedro, for defining state you used const keyword, but for me it shows some error message which says "Assignment to constant variable" and everything crashes. So I needed to set it with let. How could it be different?
@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!!!! :)
@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?
@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).
@daivarajackiene9048
@daivarajackiene9048 2 жыл бұрын
very clear, thanks
@rhiannonmonks6894
@rhiannonmonks6894 2 жыл бұрын
This is a beautiful video.
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
Thank you very much!
@dvlaasya6855
@dvlaasya6855 9 ай бұрын
hi, i have doubt at 10:53, age is declared as const but it is changing If i run the code, then it is showing cannot assign to constat variable error
@federicoraulmaciasaparicio1339
@federicoraulmaciasaparicio1339 2 жыл бұрын
I know it's probably too late for suggestions on the course but, do you think it could be possible to add redux toolkit, pagination and graphql to the course??
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
I plan on adding redux toolkit! I have a video on pagination already if u are interested :) About graphql, I already have a full gql course that includes react in it if u are interested: kzbin.info/aero/PLpPqplz6dKxXICtNgHY1tiCPau_AwWAJU
@ongi27
@ongi27 11 ай бұрын
Bro u saved my life ❤❤❤❤❤❤
ReactJS Course [5] - CRUD In React | TodoList Tutorial
41:18
PedroTech
Рет қаралды 99 М.
СКОЛЬКО ПАЛЬЦЕВ ТУТ?
00:16
Masomka
Рет қаралды 3,6 МЛН
React useState() hook introduction 🎣
16:33
Bro Code
Рет қаралды 35 М.
6 State Mistakes Every Junior React Developer Makes
15:53
Lama Dev
Рет қаралды 269 М.
ReactJS Course [6] - Component Lifecycle | UseEffect Tutorial
19:24
ReactJS Course [2] - JSX, Components, Props...
21:24
PedroTech
Рет қаралды 83 М.
Every React Concept Explained in 12 Minutes
11:53
Code Bootcamp
Рет қаралды 812 М.
Avoid this React State Mistake | React Previous State Explained
13:23
Learn React Hooks: useEffect - Simply Explained!
14:07
Cosden Solutions
Рет қаралды 168 М.