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

Поделиться
HTML-код
  • Опубликовано: 3 ноя 2024

Комментарии • 293

  • @RakeshBitling
    @RakeshBitling Год назад +11

    Dear हितेश चौधरी Sir, तुम्हारे नाम का ये गीत है,
    आपकी मेहनत और संघर्ष का परिणाम है ये सीरीस,
    ज्ञान का सागर, तकनीक का महारथी,
    हम सब जानते हैं, आप हो अद्भुत मनुष्य।
    IT के क्षेत्र में आपका योगदान अत्यधिक,
    हार्दिक सलाम आपको, आप हो हमारे टेक्निकल गुरू,
    आपकी विद्या से जगमगता है सबका मन,
    हितेश चौधरी, आप हो हमारे दिल की धड़कन।

    • @deveshsharma534
      @deveshsharma534 6 месяцев назад +1

      bro don't ever shift to music or singing industry.. technology don't want to loose you!

  • @prathameshtirlotkar505
    @prathameshtirlotkar505 7 месяцев назад +2

    This video will exactly teach you how state is updated and total component is re rendered best explanation 🔥🔥

  • @deepeshpakhare
    @deepeshpakhare Год назад +13

    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 10 месяцев назад

      setvalue in callback on button click event

    • @3clouds919
      @3clouds919 6 месяцев назад

      Bro, but if we will write {value * 5} then i think values will go like 5, 25, 125... instead of 5, 10, 15...

  • @sandeepraju2507
    @sandeepraju2507 7 месяцев назад

    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.

  • @sultangaming7336
    @sultangaming7336 Год назад +4

    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.

  • @shashiKPD
    @shashiKPD 3 месяца назад

    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

  • @RahulDas-he7vm
    @RahulDas-he7vm Год назад +6

    have no words to say anything about your efforts ..just ❤❤❤❤

    • @chaiaurcode
      @chaiaurcode  Год назад +3

      Thank you so much 😀

    • @hyperff2505
      @hyperff2505 Год назад

      ​@@chaiaurcodesir jii mera react app me error aa raha hai help karona please sir

  • @VishalSharma-rn7mt
    @VishalSharma-rn7mt Год назад +1

    Awesome, very simply, beautifully explained the concept
    Thank you so much Sirji 🙂

  • @HITESHKUMAR-px3nv
    @HITESHKUMAR-px3nv Год назад

    Must must must video for every developer
    Thanks @hitesh sir

  • @nishantsah6981
    @nishantsah6981 Год назад +2

    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

  • @RakeshBitling
    @RakeshBitling Год назад +1

    wow..sir this is what i was searching..this channel is excellent.. Sir is teaching excellent....

    • @chaiaurcode
      @chaiaurcode  Год назад +1

      Thanks and welcome

    • @RakeshBitling
      @RakeshBitling Год назад

      @@chaiaurcode thanks sir I am loving this series and preparing for interviews too.

  • @Dev-Phantom
    @Dev-Phantom 7 месяцев назад +1

    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.

  • @Dev-Phantom
    @Dev-Phantom 7 месяцев назад +1

    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.

  • @sanketgade1131
    @sanketgade1131 Год назад

    Guru ji Aap ka explanation ekdam to the point rehta hai
    Please make a video On how to manage time (Time management)❤

  • @shanipandey9809
    @shanipandey9809 Год назад

    100% captured all concepts
    Once more big thanks for hitesh sir

  • @arunvlogs1305
    @arunvlogs1305 9 месяцев назад

    sir ye concept to tagda tha maine to kabhi dhyan hee nahi diya . thanks a lot sir 🙏

  • @NeedToKnow.
    @NeedToKnow. 6 месяцев назад

    Thank you guruji for increasing my knowledge in react day by day ...

  • @ngarg92786
    @ngarg92786 3 месяца назад

    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.

  • @saikumargatla4706
    @saikumargatla4706 Год назад +6

    Lagta hai abb koi bhi company ka frontend, backend round clear ho gayega❤❤❤❤❤❤🎉

    • @md_asharaf
      @md_asharaf 7 месяцев назад

      vo to ho hi jayega but cv shortlist hone me hi sbse jyada problem aati h

    • @abhishekchaudhary4058
      @abhishekchaudhary4058 6 месяцев назад

      Lag gayi kya Bhaii job

    • @udaysah944
      @udaysah944 4 месяца назад

      Bhai clear huwa ??

  • @bman0922
    @bman0922 Год назад +1

    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 ....❤

  • @ChaiAndCodeLover
    @ChaiAndCodeLover Год назад

    Guru ji aapki guidance follow kr rha hu improvement ho rha h

  • @manemanoj3068
    @manemanoj3068 Год назад +1

    Dhuna heladi bhayya aap na😂

  • @jk-sm6qr
    @jk-sm6qr 7 месяцев назад

    Samjhane wala hoto, basic project me bhi kaafi indepth knowledge mil jati hai✅

  • @aggsha7580
    @aggsha7580 2 месяца назад

    Thanks A Lot Sir for such valuable content ❤❤

  • @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

  • @chandanmaurya9034
    @chandanmaurya9034 Год назад

    Thanks for explaining mounting concept in useState ....

  • @bhaskarmoger1160
    @bhaskarmoger1160 2 месяца назад

    This concept is freaking me out 😆

  • @Ankit-bd9zp
    @Ankit-bd9zp Год назад +2

    I think
    I'll be ready for react interview now

    • @chaiaurcode
      @chaiaurcode  Год назад +4

      is series ke baad, mostly sab hi ready h react interviews ke liye

  • @munna5553
    @munna5553 Год назад

    Sir apka hype bhi next level h

  • @mdiqbalali6413
    @mdiqbalali6413 Год назад

    Best channel for developer ❤

  • @RakeshSingh-vl2mz
    @RakeshSingh-vl2mz Год назад

    What an example sir ji😮🔥🔥

  • @devanand4269
    @devanand4269 Год назад

    Thank you sir amazing concept.😄

  • @SharukhKhan-ln9ts
    @SharukhKhan-ln9ts Год назад

    amazing video sir. thnku so much for giving this type of knowledge for free.😊

  • @imtherick
    @imtherick 5 месяцев назад

    We can use useCallback to stop re-mount of the Component

  • @kashyapprajapati4700
    @kashyapprajapati4700 Год назад +1

    Awesome 👍🏻 sirji

  • @Bikash_Santra
    @Bikash_Santra 9 месяцев назад

    Learned a new thing! Thanks sir❤

  • @ankushladani496
    @ankushladani496 Год назад

    Dhanyawad Guruji...🎉❤

  • @1991sushilpandey
    @1991sushilpandey Год назад

    Great sir, Thank you for clarification

  • @kaushalyadav5616
    @kaushalyadav5616 Год назад +4

    That'll be great initiative on your part Sir. Aapka tahe dil se se sukriya in beskimati content k liye❤

    • @chaiaurcode
      @chaiaurcode  Год назад +1

      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

  • @shubhtalk7073
    @shubhtalk7073 5 месяцев назад

    Thank you hitesh sir ❤

  • @gujaratinimoj3845
    @gujaratinimoj3845 Год назад

    Amazing concept sir..

  • @abhishekkhatana1256
    @abhishekkhatana1256 Год назад +1

    Ram Ram sir ji 🙏🏻🙏🏻🙏🏻🙏🏻

  • @relativelyrehan
    @relativelyrehan Год назад

    I have read on twitter once that learning react is learning useState and useEffect, and then learning how not to use them.

  • @ManishM-b7i
    @ManishM-b7i 11 месяцев назад

    This type of video is also required.

  • @krishnabagul9196
    @krishnabagul9196 Год назад +6

    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

  • @yanshmoradiya
    @yanshmoradiya Год назад +1

    Great work

  • @ahmadwaheed8003
    @ahmadwaheed8003 Год назад

    Amazing Concept

  • @CodingLover438
    @CodingLover438 Год назад

    thank you sir for this video clear all douts of rerendring reat js 😀😀😀😀😀😀

  • @adityamaheshwari4250
    @adityamaheshwari4250 4 месяца назад

    Sir you are great!

  • @princevishwakarmaa
    @princevishwakarmaa Год назад

    Love the way you explain.😀

  • @rohitsinghchauhan2255
    @rohitsinghchauhan2255 Год назад

    10:27 pe Jo line boli h na sir ne...
    Bapu h sir bapu

  • @dddddeeeevvvvvv
    @dddddeeeevvvvvv Год назад +4

    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 11 месяцев назад +1

      const multipliedValue = Math.pow(5, value);

    • @chiku6993
      @chiku6993 11 месяцев назад

      @@jayeshuramanatti7632 hi

  • @sanjoyrakshit842
    @sanjoyrakshit842 Год назад

    Very useful sir thanks for this video ❤❤❤😊😊

  • @emio_op
    @emio_op Год назад

    learn-->improve-->win 🔁

  • @imamansoni
    @imamansoni Год назад

    Clear basics to be Advanced. 😊

  • @abdulrazzak2934
    @abdulrazzak2934 Год назад

    react series is amazing

  • @madhavigaikwad8702
    @madhavigaikwad8702 7 месяцев назад

    very Helpful topic

  • @sambhavrana4528
    @sambhavrana4528 Год назад +1

    Sir, is your LearnCodeOnline course of Pro Backend still relevant or should I wait for your Backend series on RUclips???

  • @Vj_0_4
    @Vj_0_4 Год назад +2

    Ab to 8 ka wait hota hai ki aapki video dekhneko mile😂

  • @hussainmodiwala
    @hussainmodiwala Год назад

    Superb sirji ❤❤

  • @akashsahaks
    @akashsahaks Год назад

    Wah sir!!❤❤

  • @Securitywasted
    @Securitywasted Год назад

    Sir Bina kahe hoga comment toh.Kyunki content hi jabardast hai.

  • @saikalyanrohit9244
    @saikalyanrohit9244 Год назад

    smooth explanation

  • @relaxation_music-7ym
    @relaxation_music-7ym 7 месяцев назад

    Thank You Sir ❤❤

  • @chetanaggarwal4488
    @chetanaggarwal4488 5 месяцев назад

    Nice explanation

  • @hrithikrudra4292
    @hrithikrudra4292 Год назад +1

    Amazing bhai

  • @narotamkumarmishra6139
    @narotamkumarmishra6139 10 месяцев назад

    well explained sir✌

  • @prateekkesharwani7892
    @prateekkesharwani7892 Год назад

    Best channel for developer ❤]

  • @ritikrathour8081
    @ritikrathour8081 Год назад

    Great sir ji ❤❤❤❤❤🎉

  • @harshitagupta4730
    @harshitagupta4730 Год назад

    Target achieved: 203 comments in 20 hours. Awesome explaination 🎉

  • @sssammo6215
    @sssammo6215 Год назад

    Keep going sir🎉

  • @bman0922
    @bman0922 Год назад +1

    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  Год назад +2

      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 👍👍😀

  • @pallabdandapat1866
    @pallabdandapat1866 7 месяцев назад

    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 !!

  • @KeshavAneja
    @KeshavAneja Год назад

    Sir please upload the next Backend Video fast. Thank you so much sir.

  • @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

  • @viratmaity366
    @viratmaity366 Год назад

    aur bhi question leke aaiye sir..

  • @himanshu_________
    @himanshu_________ Год назад

    New tshirt finally

  • @santoshsalawadagi6809
    @santoshsalawadagi6809 Год назад

    Super bhai great content

  • @parthgajera8032
    @parthgajera8032 Год назад

    let's get started

  • @rishabhupadhyay1312
    @rishabhupadhyay1312 Год назад

    Hello Sir, chai aur code channel par React-Native ki bhi ek series lekar aayie, jaise react or javascript ki hai

  • @AmmarAmin-p5y
    @AmmarAmin-p5y 5 месяцев назад

    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

  • @manish_prajapati
    @manish_prajapati Год назад

    This is going very helpful

  • @rahul_sidhha
    @rahul_sidhha Год назад

    Thank you so much sir

  • @HarshitaChauhan-i2z
    @HarshitaChauhan-i2z Год назад

    Thanku so much sir

  • @JayanshuKikani-r9o
    @JayanshuKikani-r9o Год назад

    Thank You Sir

  • @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

  • @shriyanshkumar759
    @shriyanshkumar759 Год назад

    Awesome sir

  • @rendevous9253
    @rendevous9253 Год назад

    Concept is key.

  • @aryanisgood
    @aryanisgood 22 дня назад

    Thank you sir

  • @sabirpathan430
    @sabirpathan430 Год назад

    Superb sir

  • @AniruddhSinghIndia
    @AniruddhSinghIndia Год назад

    Amazing video...

  • @deepakchauhan6872
    @deepakchauhan6872 Год назад

    Love you Sir ❤❤❤❤❤❤❤

  • @CocTipstricks-um9rz
    @CocTipstricks-um9rz 6 месяцев назад

    Present sir!

  • @krishkrish3341
    @krishkrish3341 Год назад

    Thank you so much

  • @PiyushKumar-ds2pz
    @PiyushKumar-ds2pz Год назад +1

    200 COmments done 👍👍

  • @MrNH15ucl
    @MrNH15ucl Год назад

    another great video ❤

  • @sam_sharma24
    @sam_sharma24 Месяц назад

    great video

  • @shivanandkasture5563
    @shivanandkasture5563 Год назад

    Great sir

  • @devanshkashyap8001
    @devanshkashyap8001 Год назад

    great sir❤❤❤

  • @suvrajitmondal2325
    @suvrajitmondal2325 Год назад

    Sir componentdidmount, willmount yeh sab janna jaruri hai kya?? Theory to samajh aata hai lekin practical samajh nahi aata.😢

    • @guptasagar694
      @guptasagar694 9 месяцев назад

      This were all used previously in Class Based components...useEffect does the work now..I am RN developer since past 5 yrs

    • @suvrajitmondal2325
      @suvrajitmondal2325 9 месяцев назад

      @@guptasagar694 your LinkedIn id please