Dear हितेश चौधरी Sir, तुम्हारे नाम का ये गीत है, आपकी मेहनत और संघर्ष का परिणाम है ये सीरीस, ज्ञान का सागर, तकनीक का महारथी, हम सब जानते हैं, आप हो अद्भुत मनुष्य। IT के क्षेत्र में आपका योगदान अत्यधिक, हार्दिक सलाम आपको, आप हो हमारे टेक्निकल गुरू, आपकी विद्या से जगमगता है सबका मन, हितेश चौधरी, आप हो हमारे दिल की धड़कन।
Alert : The setter function in usestate hook should be used with a callback function. The setValue should be called like this. E.g. setValue((prev) => prev + 1) Also , instead of creating a new variable just write {value * 5} as node value. Done !
Thanks Hitesh sir for the great explanation. Here is what I understood as the summary for the benefit of everyone : If there is a state, and another field that you need in the component can be directly derived from your state, then simply use your state to derive the result instead of creating another state.
few days back after watching your useState video I was trying to build a simple calculator where I used two variable in useState and common boolean flag (not a useState) ... when flag == 0 var1 will get a value and will turn flag = 1 else vice versa ... however it wasn't working... every time only the first variable was changing, then I also took the flag as useState ... it then worked fine ..... but wasn't able to understand why it wasn't working earlier.... Today I got the answer
Interview - this is a part of Life cycle method in react ---- when there is any change in the state the whole components will remount, means component will update.
we should not overengineer any code in react, or say use over resource of react. it becomes to complicated. just make it simple. easy to understand . Thanks sir.
Sir, there is a difference in both flows. The first flow involves multiplying first and then adding the main value, while the second flow involves adding a value first and then multiplying.
sir esa laga ki component mount Vali bat muj pehi lagu hoti he...😂😂😂😂😂😂😂😂😂😂 Thank you 😊😊😊❤❤ Respect sir 🙏🙏🙏 💯 Reply Dene se aur boost hogyya motivation Mera ....❤
Bug Alert🐞🐞 : There is one bug with this code, when Hitesh sir showed the solution with two state variables then the multipliedValue was initially 1, but then in the second approach it became initially 5. It can be solved with conditional rendering, but there can be other ways. Also, it depend on what is the question asked on the first place (the requirements).
I am excited this video.. Sir I have 1 query I mean daute why not little introduced of a component did mount/unmount update and life cycle method concept It is nessary of these are topics or not ??? Can you suggest sir ...
lekin sir sab thik hai , wo jo pehle apne likha tha jisko comment kiya setMultiplyByFive(value*5) usme kam to same ho raha tha kiyuki multiplyByFive and valu dono ka initial value 1 hai lekin keya usko value*5 dena chahiye ? mujhe lagta hai use multiply*5 dena chahiye tha .. .. mein confused hoon sir !!
Please sir, ek interview round questions ka vi playlist nikal do frontend part ka jisme react, javascript,node sab cover ho interview questions type bs
Sir without useState kaise ui me update hora h 😮😮😮 Nhi samjha ye mount unmount vala topic, Koi samjhaega....? Ya resources share kr jo jaha se mai samajh saku
Sir please ek video chai aur kahani me bataye ki... Placement (on campus) ki taiyari kaise kre... Aptitude round, dsa , and job kaise search kre.. all please sir
Dear हितेश चौधरी Sir, तुम्हारे नाम का ये गीत है,
आपकी मेहनत और संघर्ष का परिणाम है ये सीरीस,
ज्ञान का सागर, तकनीक का महारथी,
हम सब जानते हैं, आप हो अद्भुत मनुष्य।
IT के क्षेत्र में आपका योगदान अत्यधिक,
हार्दिक सलाम आपको, आप हो हमारे टेक्निकल गुरू,
आपकी विद्या से जगमगता है सबका मन,
हितेश चौधरी, आप हो हमारे दिल की धड़कन।
bro don't ever shift to music or singing industry.. technology don't want to loose you!
This video will exactly teach you how state is updated and total component is re rendered best explanation 🔥🔥
Alert :
The setter function in usestate hook should be used with a callback function.
The setValue should be called like this.
E.g. setValue((prev) => prev + 1)
Also , instead of creating a new variable just write {value * 5} as node value. Done !
setvalue in callback on button click event
Bro, but if we will write {value * 5} then i think values will go like 5, 25, 125... instead of 5, 10, 15...
Thanks Hitesh sir for the great explanation. Here is what I understood as the summary for the benefit of everyone :
If there is a state, and another field that you need in the component can be directly derived from your state, then simply use your state to derive the result instead of creating another state.
Lot of thanks sir for providing deep knowledge course and also interview series i request you to continue this series till we master in react.
This cleared al lot of react doubts inn my mind. The fact that the whole App is getting rerendered never occurred to me. Thanks a lot for this video
have no words to say anything about your efforts ..just ❤❤❤❤
Thank you so much 😀
@@chaiaurcodesir jii mera react app me error aa raha hai help karona please sir
Awesome, very simply, beautifully explained the concept
Thank you so much Sirji 🙂
Must must must video for every developer
Thanks @hitesh sir
few days back after watching your useState video I was trying to build a simple calculator
where I used two variable in useState and common boolean flag (not a useState) ... when flag == 0 var1 will get a value and will turn flag = 1 else vice versa ... however it wasn't working... every time only the first variable was changing, then I also took the flag as useState ... it then worked fine ..... but wasn't able to understand why it wasn't working earlier.... Today I got the answer
can explain your question more i am not understand ?
wow..sir this is what i was searching..this channel is excellent.. Sir is teaching excellent....
Thanks and welcome
@@chaiaurcode thanks sir I am loving this series and preparing for interviews too.
Interview - this is a part of Life cycle method in react ---- when there is any change in the state the whole components will remount, means component will update.
we should not overengineer any code in react, or say use over resource of react. it becomes to complicated. just make it simple. easy to understand . Thanks sir.
Guru ji Aap ka explanation ekdam to the point rehta hai
Please make a video On how to manage time (Time management)❤
100% captured all concepts
Once more big thanks for hitesh sir
sir ye concept to tagda tha maine to kabhi dhyan hee nahi diya . thanks a lot sir 🙏
Thank you guruji for increasing my knowledge in react day by day ...
Sir, there is a difference in both flows. The first flow involves multiplying first and then adding the main value, while the second flow involves adding a value first and then multiplying.
Lagta hai abb koi bhi company ka frontend, backend round clear ho gayega❤❤❤❤❤❤🎉
vo to ho hi jayega but cv shortlist hone me hi sbse jyada problem aati h
Lag gayi kya Bhaii job
Bhai clear huwa ??
sir esa laga ki component mount Vali bat muj pehi lagu hoti he...😂😂😂😂😂😂😂😂😂😂
Thank you 😊😊😊❤❤
Respect sir 🙏🙏🙏
💯
Reply Dene se aur boost hogyya motivation Mera ....❤
Guru ji aapki guidance follow kr rha hu improvement ho rha h
Dhuna heladi bhayya aap na😂
Samjhane wala hoto, basic project me bhi kaafi indepth knowledge mil jati hai✅
Thanks A Lot Sir for such valuable content ❤❤
best tareqe se samjhaya hai but agr wo kahay k value ko update na kro tb tou dosri state use krna must hogi na
Thanks for explaining mounting concept in useState ....
This concept is freaking me out 😆
I think
I'll be ready for react interview now
is series ke baad, mostly sab hi ready h react interviews ke liye
Sir apka hype bhi next level h
Best channel for developer ❤
What an example sir ji😮🔥🔥
Thank you sir amazing concept.😄
amazing video sir. thnku so much for giving this type of knowledge for free.😊
We can use useCallback to stop re-mount of the Component
Awesome 👍🏻 sirji
Learned a new thing! Thanks sir❤
Dhanyawad Guruji...🎉❤
Great sir, Thank you for clarification
That'll be great initiative on your part Sir. Aapka tahe dil se se sukriya in beskimati content k liye❤
Thanks
Mera react aap me ek error aa raha hai help karo na
@@chaiaurcodesir visual studio me react aap me error aa raha hai help karona sir
Thank you hitesh sir ❤
Amazing concept sir..
Ram Ram sir ji 🙏🏻🙏🏻🙏🏻🙏🏻
I have read on twitter once that learning react is learning useState and useEffect, and then learning how not to use them.
This type of video is also required.
Sir Javascript k interview questions ka ek video bna do interview m problem aa rhi h
Bhai interview mil kha se rhe h kaafi mhine ho gye react in depth seekhe parr koi fresher ko chance hi nahi de rha
Great work
Great work
Thank you so much 😀
Amazing Concept
thank you sir for this video clear all douts of rerendring reat js 😀😀😀😀😀😀
Sir you are great!
Love the way you explain.😀
10:27 pe Jo line boli h na sir ne...
Bapu h sir bapu
Bug Alert🐞🐞 : There is one bug with this code, when Hitesh sir showed the solution with two state variables then the multipliedValue was initially 1, but then in the second approach it became initially 5. It can be solved with conditional rendering, but there can be other ways. Also, it depend on what is the question asked on the first place (the requirements).
const multipliedValue = Math.pow(5, value);
@@jayeshuramanatti7632 hi
Very useful sir thanks for this video ❤❤❤😊😊
learn-->improve-->win 🔁
Clear basics to be Advanced. 😊
react series is amazing
very Helpful topic
Sir, is your LearnCodeOnline course of Pro Backend still relevant or should I wait for your Backend series on RUclips???
Ab to 8 ka wait hota hai ki aapki video dekhneko mile😂
Student ho
@@Sumeshkumarbackhaa bhaiii sikh hi rahe hai
@@Vj_0_4 mujhe laga job
Superb sirji ❤❤
Wah sir!!❤❤
Sir Bina kahe hoga comment toh.Kyunki content hi jabardast hai.
❤️❤️
smooth explanation
Thank You Sir ❤❤
Nice explanation
Amazing bhai
well explained sir✌
Best channel for developer ❤]
Thanks
Great sir ji ❤❤❤❤❤🎉
Target achieved: 203 comments in 20 hours. Awesome explaination 🎉
Keep going sir🎉
I am excited this video..
Sir I have 1 query I mean daute why not little introduced of a component did mount/unmount update and life cycle method concept
It is nessary of these are topics or not ???
Can you suggest sir ...
It’s better to spend time in understanding the workings of useeffect hook.
@@chaiaurcode ok sir thank you so much sir reply or suggest me 👍👍😀
lekin sir sab thik hai , wo jo pehle apne likha tha jisko comment kiya setMultiplyByFive(value*5) usme kam to same ho raha tha kiyuki multiplyByFive and valu dono ka initial value 1 hai lekin keya usko value*5 dena chahiye ? mujhe lagta hai use multiply*5 dena chahiye tha .. .. mein confused hoon sir !!
Sir please upload the next Backend Video fast. Thank you so much sir.
Please sir, ek interview round questions ka vi playlist nikal do frontend part ka jisme react, javascript,node sab cover ho interview questions type bs
aur bhi question leke aaiye sir..
New tshirt finally
Super bhai great content
let's get started
Hello Sir, chai aur code channel par React-Native ki bhi ek series lekar aayie, jaise react or javascript ki hai
Sir without useState kaise ui me update hora h 😮😮😮
Nhi samjha ye mount unmount vala topic,
Koi samjhaega....?
Ya resources share kr jo jaha se mai samajh saku
This is going very helpful
Thank you so much sir
Thanku so much sir
Thank You Sir
Sir please ek video chai aur kahani me bataye ki... Placement (on campus) ki taiyari kaise kre... Aptitude round, dsa , and job kaise search kre.. all please sir
Awesome sir
Concept is key.
Thank you sir
Superb sir
Amazing video...
Love you Sir ❤❤❤❤❤❤❤
Present sir!
Thank you so much
200 COmments done 👍👍
another great video ❤
great video
Great sir
great sir❤❤❤
Sir componentdidmount, willmount yeh sab janna jaruri hai kya?? Theory to samajh aata hai lekin practical samajh nahi aata.😢
This were all used previously in Class Based components...useEffect does the work now..I am RN developer since past 5 yrs
@@guptasagar694 your LinkedIn id please