you don't need state for this | react interview question

  Рет қаралды 30,538

Chai aur Code

Chai aur Code

Күн бұрын

Пікірлер: 301
@RakeshBitling
@RakeshBitling Жыл бұрын
Dear हितेश चौधरी Sir, तुम्हारे नाम का ये गीत है, आपकी मेहनत और संघर्ष का परिणाम है ये सीरीस, ज्ञान का सागर, तकनीक का महारथी, हम सब जानते हैं, आप हो अद्भुत मनुष्य। IT के क्षेत्र में आपका योगदान अत्यधिक, हार्दिक सलाम आपको, आप हो हमारे टेक्निकल गुरू, आपकी विद्या से जगमगता है सबका मन, हितेश चौधरी, आप हो हमारे दिल की धड़कन।
@deveshsharma534
@deveshsharma534 8 ай бұрын
bro don't ever shift to music or singing industry.. technology don't want to loose you!
@deepeshpakhare
@deepeshpakhare Жыл бұрын
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 !
@yuvrajsinghGurjar-eb7ko
@yuvrajsinghGurjar-eb7ko Жыл бұрын
setvalue in callback on button click event
@3clouds919
@3clouds919 8 ай бұрын
Bro, but if we will write {value * 5} then i think values will go like 5, 25, 125... instead of 5, 10, 15...
@prathameshtirlotkar505
@prathameshtirlotkar505 10 ай бұрын
This video will exactly teach you how state is updated and total component is re rendered best explanation 🔥🔥
@sandeepraju2507
@sandeepraju2507 10 ай бұрын
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.
@shashiKPD
@shashiKPD 5 ай бұрын
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
@sultangaming7336
@sultangaming7336 Жыл бұрын
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.
@RakeshBitling
@RakeshBitling Жыл бұрын
wow..sir this is what i was searching..this channel is excellent.. Sir is teaching excellent....
@chaiaurcode
@chaiaurcode Жыл бұрын
Thanks and welcome
@RakeshBitling
@RakeshBitling Жыл бұрын
@@chaiaurcode thanks sir I am loving this series and preparing for interviews too.
@Dev-Phantom
@Dev-Phantom 9 ай бұрын
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.
@VishalSharma-rn7mt
@VishalSharma-rn7mt Жыл бұрын
Awesome, very simply, beautifully explained the concept Thank you so much Sirji 🙂
@nishantsah6981
@nishantsah6981 Жыл бұрын
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
@yuvrajsinghGurjar-eb7ko
@yuvrajsinghGurjar-eb7ko Жыл бұрын
can explain your question more i am not understand ?
@RahulDas-he7vm
@RahulDas-he7vm Жыл бұрын
have no words to say anything about your efforts ..just ❤❤❤❤
@chaiaurcode
@chaiaurcode Жыл бұрын
Thank you so much 😀
@hyperff2505
@hyperff2505 Жыл бұрын
​@@chaiaurcodesir jii mera react app me error aa raha hai help karona please sir
@manemanoj3068
@manemanoj3068 Жыл бұрын
Dhuna heladi bhayya aap na😂
@afzalhamdulay
@afzalhamdulay 2 ай бұрын
jab mai react sikhna start kiya tha tab hi question jaag gaya tha ki agar variable se kaam hora hai toh state kyu banaye. thanks for the video
@shanipandey9809
@shanipandey9809 Жыл бұрын
100% captured all concepts Once more big thanks for hitesh sir
@krishnabagul9196
@krishnabagul9196 Жыл бұрын
Sir Javascript k interview questions ka ek video bna do interview m problem aa rhi h
@sumitbhardwaz
@sumitbhardwaz Жыл бұрын
Bhai interview mil kha se rhe h kaafi mhine ho gye react in depth seekhe parr koi fresher ko chance hi nahi de rha
@HimanshuKumar-hp1vj
@HimanshuKumar-hp1vj Жыл бұрын
Great work
@HITESHKUMAR-px3nv
@HITESHKUMAR-px3nv Жыл бұрын
Must must must video for every developer Thanks @hitesh sir
@Dev-Phantom
@Dev-Phantom 9 ай бұрын
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.
@saikumargatla4706
@saikumargatla4706 Жыл бұрын
Lagta hai abb koi bhi company ka frontend, backend round clear ho gayega❤❤❤❤❤❤🎉
@md_asharaf
@md_asharaf 10 ай бұрын
vo to ho hi jayega but cv shortlist hone me hi sbse jyada problem aati h
@abhishekchaudhary4058
@abhishekchaudhary4058 8 ай бұрын
Lag gayi kya Bhaii job
@24Remix
@24Remix 7 ай бұрын
Bhai clear huwa ??
@sanketgade1131
@sanketgade1131 Жыл бұрын
Guru ji Aap ka explanation ekdam to the point rehta hai Please make a video On how to manage time (Time management)❤
@ngarg92786
@ngarg92786 5 ай бұрын
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.
@arunvlogs1305
@arunvlogs1305 Жыл бұрын
sir ye concept to tagda tha maine to kabhi dhyan hee nahi diya . thanks a lot sir 🙏
@jk-sm6qr
@jk-sm6qr 10 ай бұрын
Samjhane wala hoto, basic project me bhi kaafi indepth knowledge mil jati hai✅
@bman0922
@bman0922 Жыл бұрын
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 ....❤
@Ankit-bd9zp
@Ankit-bd9zp Жыл бұрын
I think I'll be ready for react interview now
@chaiaurcode
@chaiaurcode Жыл бұрын
is series ke baad, mostly sab hi ready h react interviews ke liye
@kb-atanu
@kb-atanu 7 ай бұрын
We can use useCallback to stop re-mount of the Component
@bhaskarmoger1
@bhaskarmoger1 4 ай бұрын
This concept is freaking me out 😆
@Vj_0_4
@Vj_0_4 Жыл бұрын
Ab to 8 ka wait hota hai ki aapki video dekhneko mile😂
@Sumeshkumarback
@Sumeshkumarback Жыл бұрын
Student ho
@Vj_0_4
@Vj_0_4 Жыл бұрын
​@@Sumeshkumarbackhaa bhaiii sikh hi rahe hai
@Sumeshkumarback
@Sumeshkumarback Жыл бұрын
@@Vj_0_4 mujhe laga job
@kaushalyadav5616
@kaushalyadav5616 Жыл бұрын
That'll be great initiative on your part Sir. Aapka tahe dil se se sukriya in beskimati content k liye❤
@chaiaurcode
@chaiaurcode Жыл бұрын
Thanks
@hyperff2505
@hyperff2505 Жыл бұрын
Mera react aap me ek error aa raha hai help karo na
@hyperff2505
@hyperff2505 Жыл бұрын
​@@chaiaurcodesir visual studio me react aap me error aa raha hai help karona sir
@NeedToKnow.
@NeedToKnow. 8 ай бұрын
Thank you guruji for increasing my knowledge in react day by day ...
@irfansaeedkhan7242
@irfansaeedkhan7242 Жыл бұрын
best tareqe se samjhaya hai but agr wo kahay k value ko update na kro tb tou dosri state use krna must hogi na
@devmittal29
@devmittal29 23 сағат бұрын
A question here, if we don't change value i.e. we don't write setValue(value+1) then the component will nt re-render and the multiplied value won't be updated...right?
@relativelyrehan
@relativelyrehan Жыл бұрын
I have read on twitter once that learning react is learning useState and useEffect, and then learning how not to use them.
@mdiqbalali6413
@mdiqbalali6413 Жыл бұрын
Best channel for developer ❤
@muhammadyaseenakhtar7789
@muhammadyaseenakhtar7789 Ай бұрын
very subtle knowledge, thanks ❤️❤️
@ChaiAndCodeLover
@ChaiAndCodeLover Жыл бұрын
Guru ji aapki guidance follow kr rha hu improvement ho rha h
@emio_op
@emio_op Жыл бұрын
learn-->improve-->win 🔁
@SharukhKhan-ln9ts
@SharukhKhan-ln9ts Жыл бұрын
amazing video sir. thnku so much for giving this type of knowledge for free.😊
@munna5553
@munna5553 Жыл бұрын
Sir apka hype bhi next level h
@chandanmaurya9034
@chandanmaurya9034 Жыл бұрын
Thanks for explaining mounting concept in useState ....
@aggsha7580
@aggsha7580 4 ай бұрын
Thanks A Lot Sir for such valuable content ❤❤
@ManishM-b7i
@ManishM-b7i Жыл бұрын
This type of video is also required.
@abhishekkhatana1256
@abhishekkhatana1256 Жыл бұрын
Ram Ram sir ji 🙏🏻🙏🏻🙏🏻🙏🏻
@dddddeeeevvvvvv
@dddddeeeevvvvvv Жыл бұрын
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).
@jayeshuramanatti7632
@jayeshuramanatti7632 Жыл бұрын
const multipliedValue = Math.pow(5, value);
@chiku6993
@chiku6993 Жыл бұрын
@@jayeshuramanatti7632 hi
@prateekkesharwani7892
@prateekkesharwani7892 Жыл бұрын
Best channel for developer ❤]
@chaiaurcode
@chaiaurcode Жыл бұрын
Thanks
@Securitywasted
@Securitywasted Жыл бұрын
Sir Bina kahe hoga comment toh.Kyunki content hi jabardast hai.
@chaiaurcode
@chaiaurcode Жыл бұрын
❤️❤️
@CodingLover438
@CodingLover438 Жыл бұрын
thank you sir for this video clear all douts of rerendring reat js 😀😀😀😀😀😀
@BeMyAndromeda
@BeMyAndromeda Жыл бұрын
What an example sir ji😮🔥🔥
@rohitsinghchauhan2255
@rohitsinghchauhan2255 Жыл бұрын
10:27 pe Jo line boli h na sir ne... Bapu h sir bapu
@imamansoni
@imamansoni Жыл бұрын
Clear basics to be Advanced. 😊
@09khushbookumari4
@09khushbookumari4 Жыл бұрын
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
@bman0922
@bman0922 Жыл бұрын
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 ...
@chaiaurcode
@chaiaurcode Жыл бұрын
It’s better to spend time in understanding the workings of useeffect hook.
@bman0922
@bman0922 Жыл бұрын
@@chaiaurcode ok sir thank you so much sir reply or suggest me 👍👍😀
@Bikash_Santra
@Bikash_Santra Жыл бұрын
Learned a new thing! Thanks sir❤
@devanand4269
@devanand4269 Жыл бұрын
Thank you sir amazing concept.😄
@sambhavrana4528
@sambhavrana4528 Жыл бұрын
Sir, is your LearnCodeOnline course of Pro Backend still relevant or should I wait for your Backend series on KZbin???
@sanjoyrakshit842
@sanjoyrakshit842 Жыл бұрын
Very useful sir thanks for this video ❤❤❤😊😊
@1991sushilpandey
@1991sushilpandey Жыл бұрын
Great sir, Thank you for clarification
@viratmaity366
@viratmaity366 Жыл бұрын
aur bhi question leke aaiye sir..
@princevishwakarmaa
@princevishwakarmaa Жыл бұрын
Love the way you explain.😀
@pallabdandapat1866
@pallabdandapat1866 10 ай бұрын
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 !!
@acxd
@acxd Жыл бұрын
component remount hota hai ya re-render hota hai , kafi confusing statement hai , can anybody clarify!
@kashyapprajapati4700
@kashyapprajapati4700 Жыл бұрын
Awesome 👍🏻 sirji
@ankushladani496
@ankushladani496 Жыл бұрын
Dhanyawad Guruji...🎉❤
@surendraupreti8928
@surendraupreti8928 2 ай бұрын
What if we use const [value, setValue ] = useState({ num: 0 prod: 0});
@shubhtalk7073
@shubhtalk7073 8 ай бұрын
Thank you hitesh sir ❤
@AmmarAmin-p5y
@AmmarAmin-p5y 7 ай бұрын
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
@RohitChhabirajYadav
@RohitChhabirajYadav Жыл бұрын
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
@gujaratinimoj3845
@gujaratinimoj3845 Жыл бұрын
Amazing concept sir..
@rishabhupadhyay1312
@rishabhupadhyay1312 Жыл бұрын
Hello Sir, chai aur code channel par React-Native ki bhi ek series lekar aayie, jaise react or javascript ki hai
@arvajkhan683
@arvajkhan683 Жыл бұрын
sir react ki interview ki tyari bhe chai or code se hi kar lege or react bhe yaha se hi complete ho jayega fer kahi jana bhe nahi padega sir or bhe video lekar aao interview ralative
@HDC00
@HDC00 Жыл бұрын
20:48
@varunsolanki1780
@varunsolanki1780 Жыл бұрын
Please assist on below: showing on lco Website after login in then too below error showing Private Video Sorry, you don’t have permission to watch.
@harshitagupta4730
@harshitagupta4730 Жыл бұрын
Target achieved: 203 comments in 20 hours. Awesome explaination 🎉
@yanshmoradiya
@yanshmoradiya Жыл бұрын
Great work
@chaiaurcode
@chaiaurcode Жыл бұрын
Thank you so much 😀
@samarthsaxena8987
@samarthsaxena8987 Жыл бұрын
Bhaiya ek full stack mern mega project kra dijiye jo hum log apne resume me add kr paye aur bhaiya plz koi unique ho ecommerce vghra na ho plz ...
@KeshavAneja
@KeshavAneja Жыл бұрын
Sir please upload the next Backend Video fast. Thank you so much sir.
@adityamaheshwari4250
@adityamaheshwari4250 6 ай бұрын
Sir you are great!
@abdulrazzak2934
@abdulrazzak2934 Жыл бұрын
react series is amazing
@shaheerniazi1742
@shaheerniazi1742 Жыл бұрын
LOVE FROM PAKISTAN USTAD G!
@hussainmodiwala
@hussainmodiwala Жыл бұрын
Superb sirji ❤❤
@ahmadwaheed8003
@ahmadwaheed8003 Жыл бұрын
Amazing Concept
@narotamkumarmishra6139
@narotamkumarmishra6139 Жыл бұрын
well explained sir✌
@suvrajitmondal2325
@suvrajitmondal2325 Жыл бұрын
Sir componentdidmount, willmount yeh sab janna jaruri hai kya?? Theory to samajh aata hai lekin practical samajh nahi aata.😢
@guptasagar694
@guptasagar694 11 ай бұрын
This were all used previously in Class Based components...useEffect does the work now..I am RN developer since past 5 yrs
@suvrajitmondal2325
@suvrajitmondal2325 11 ай бұрын
@@guptasagar694 your LinkedIn id please
@nkdesai131
@nkdesai131 6 ай бұрын
Hello Mr sir aap kha se ho?
@sssammo6215
@sssammo6215 Жыл бұрын
Keep going sir🎉
@parthgajera8032
@parthgajera8032 Жыл бұрын
let's get started
@himanshu_________
@himanshu_________ Жыл бұрын
New tshirt finally
@akashsahaks
@akashsahaks Жыл бұрын
Wah sir!!❤❤
@chetanaggarwal4488
@chetanaggarwal4488 7 ай бұрын
Nice explanation
@MonirHossain-xx4lt
@MonirHossain-xx4lt Жыл бұрын
How much stack in react
@navinkumarsahu1159
@navinkumarsahu1159 Жыл бұрын
I wonder what it could be 🤔
@relaxation_music-7ym
@relaxation_music-7ym 10 ай бұрын
Thank You Sir ❤❤
@madhavigaikwad8702
@madhavigaikwad8702 10 ай бұрын
very Helpful topic
@rendevous9253
@rendevous9253 Жыл бұрын
Concept is key.
@MrNH15ucl
@MrNH15ucl Жыл бұрын
another great video ❤
@hrithikrudra4292
@hrithikrudra4292 Жыл бұрын
Amazing bhai
@ritikrathour8081
@ritikrathour8081 Жыл бұрын
Great sir ji ❤❤❤❤❤🎉
@PiyushKumar-ds2pz
@PiyushKumar-ds2pz Жыл бұрын
200 COmments done 👍👍
@AbhishekSingh-q3e
@AbhishekSingh-q3e Ай бұрын
all doubuts clear of re-rendering
@lifewithUsmaniafamily
@lifewithUsmaniafamily Жыл бұрын
Sir please clear filter topic in 🔍 bar
@lifewithUsmaniafamily
@lifewithUsmaniafamily Жыл бұрын
Sir filter ka concept smjha dejeye
@chaiaurcode
@chaiaurcode Жыл бұрын
Javascript waali playlist check kro, vaha available h
Testing your datatype skills in react interviews
11:58
Chai aur Code
Рет қаралды 25 М.
[ Live ] React JS Interview 🤯 | Frontend UI Questions 🤒
1:12:35
Akshay Saini
Рет қаралды 387 М.
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
Pick these tech to make or destroy your tech career
15:52
Chai aur Code
Рет қаралды 127 М.
A react interview question on counter
8:26
Chai aur Code
Рет қаралды 168 М.
Dependency Injection, The Best Pattern
13:16
CodeAesthetic
Рет қаралды 908 М.
The React Interview Questions You need to Know
21:29
CoderOne
Рет қаралды 52 М.
This is the Only Right Way to Write React clean-code - SOLID
18:23
Context API in react | get the concept
29:00
Hitesh Choudhary
Рет қаралды 73 М.
React useState Hook - React Hooks Explained
20:06
Piyush Garg
Рет қаралды 19 М.
Tech for 2025 | No nonsense guide
17:38
Chai aur Code
Рет қаралды 124 М.
Why Signals Are Better Than React Hooks
16:30
Web Dev Simplified
Рет қаралды 495 М.
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.