When to use "useRef" React Hook

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

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

  • @StyleSagaaaa
    @StyleSagaaaa 3 месяца назад +6

    ek number bhaiya abhi tak useRef persistent vale kisi ne nhi bataya tha .

  • @tasnimquadri1085
    @tasnimquadri1085 8 дней назад

    the one thing->" dobara samajhte hain" is the best and it just puts the logic in our mind

  • @ajitrai1945
    @ajitrai1945 3 месяца назад +2

    I have 3 yr of experience in react but today i understood useRef clearly 💯
    Thanks bhaiya ❤

    • @gameking2447
      @gameking2447 2 месяца назад +1

      really 🤣🤣🤣🤣👍👍

  • @luckypal3497
    @luckypal3497 3 месяца назад +17

    We want 2 videos in a day

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

      Ab to ek v nahi aa raha h

  • @shaikhmukhtar5748
    @shaikhmukhtar5748 2 месяца назад +1

    Either DSA Or Dev this guy is superb!

  • @farziikhan8917
    @farziikhan8917 3 месяца назад +2

    I Love you sir Ap jaisy teacher ho na to kabhi kisi ko parny ma taklif nhi hogii My Inspiration. Thanks Sir

  • @SandeepKumar-ph9ug
    @SandeepKumar-ph9ug 2 месяца назад

    Love the way you explained `useRef`! The comparison with `useState` was really helpful in understanding how `useRef` keeps values persistent across renders without causing re-renders. Also, the example of accessing DOM elements using `useRef` cleared up a lot of confusion. Thanks Love Bhaiya
    for making it so simple to understand!

  • @farhanakhtar971
    @farhanakhtar971 3 месяца назад +1

    Thank you bhaiya, useRef() me bahut dino se confused tha,
    Mst clear ho gyaa😊

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

    This course is well structured, Whoever want to learn Mern stack don't take paid courses if this type of content available. ✅

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

    bhaiya thanks apki video se kafi accha concept clear hua sare hooks dekhe love you hope your videos get love in milllions hidden gem soon everyone will find it

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

    Consistency++ Thank You so much sir we are waiting for next videos❤😊

  • @Coder_raunak12
    @Coder_raunak12 13 дней назад

    Concept clear samajh me aa gya bhaiya😊

  • @pranavhimanshu4773
    @pranavhimanshu4773 3 месяца назад +1

    ek number bhaiya consistency ++

  • @yashkhatwani230
    @yashkhatwani230 19 дней назад

    Thanks a lot , got clear understanding of useRef hook

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

    Everything is clear in this video without any doubt. thank you so much bade bhaiya🙏🙏🙏🙏🙏🙏

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

    You are doing great..such a great teacher.. thanks for providing this content.

  • @shankarshirale3064
    @shankarshirale3064 3 месяца назад +2

    going really well thanks a lot

  • @ashwanikharwar2023
    @ashwanikharwar2023 3 месяца назад +1

    Great Explanation of useRef hook ❤❤

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

    1 number concept bhai

  • @M.AbuBakarSiddiq-t7b
    @M.AbuBakarSiddiq-t7b 29 дней назад

    Next Level Teaching Brother 💕💕

  • @priyankasontakke-kr9ft
    @priyankasontakke-kr9ft 2 месяца назад

    Dil khush kr dita😊

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

    Thankyou bro for explaining useRef usecases in very good manner

  • @rohanmalakar08
    @rohanmalakar08 3 месяца назад +1

    Thanks bhaiya
    I am not able to understand this topic but know clear

  • @Dharmendrakumar-be3bv
    @Dharmendrakumar-be3bv 7 минут назад

    Love you bhaiya ji ❤ you are amazing personality

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

    Love naam sun ke flower smjha kyaa fire hai fire 🔥🔥🔥🔥

  • @surajbiradar6626
    @surajbiradar6626 3 месяца назад +2

    Waiting for next video

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

    everything is clear brother

  • @ruthless9555
    @ruthless9555 3 дня назад

    To those who have doubt about the fast pace running of the timer after clicking on Start button multiple times, just make a slight change in the function StartTimer():--
    function startTimer() {
    // Check if the timer is already running
    if (!timerRef.current) {
    timerRef.current = setInterval(() => {
    setTime((prevTime) => prevTime + 1);
    }, 1000);
    }
    }

  • @reyaz96614
    @reyaz96614 3 месяца назад +1

    Bhaiya maza to aa raha h lekin continue video upload kijiye please

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

    thank you bhaiya. Great video

  • @whatsupchat8317
    @whatsupchat8317 3 месяца назад +2

    Bhaiya apko kse pta chlta hai ham kha fass rhe...mtlb ekdm accurate pain point with perfect example..

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

    great video bhaiya

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

    kya series hai bro mja aa gya

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

    clearly understood bhaiya

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

    Bhaiya bring some exciting projects using these hooks🙌🏻👍🏻

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

    Sir maza aa gya what a great explanation

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

    Excellent

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

    One issue is there, if you click on the start button multiple times, multiple instances of clearInterval are created, rather we need to create a instance only when the above condition exists: if(interval.current === null)

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

    Great sir ji👍

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

    Thank you sir ❤

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

    thank you so much for your hard work sir

  • @BossThe-y5o
    @BossThe-y5o 23 дня назад

    Good explaination

  • @surajshah6668
    @surajshah6668 3 месяца назад +1

    Please upload more video.

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

    consisitency++ thank you so much always providing great in source of Knowledge

  • @GetSetCode-20
    @GetSetCode-20 3 месяца назад

    thank you so much bhaiya ❣

  • @deepshekhardas2267
    @deepshekhardas2267 3 месяца назад +1

    course kb tk complete hoga bhaiya

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

    sir 2 videos daliya / day bcz kafi tym sa pending thi esliya ab jldi jldi cover karni ha

  • @AkashYadav-di6kd
    @AkashYadav-di6kd Месяц назад

    Thank you bhaiya

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

    good video sound in this video always make this kind of sound in entire web dev series. try to make voice louder in all videos

  • @AkashYadav-di6kd
    @AkashYadav-di6kd Месяц назад

    Thank you very much

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

    Bhaiya ko Like dekar support karo aur subscribe karna mat bhulna sare...❤

  • @muhammaduseram9405
    @muhammaduseram9405 4 дня назад

    Thanks

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

    mja aa gya bhaiya

  • @prathamrelan3506
    @prathamrelan3506 13 дней назад

    u are superb

  • @govardhansai8838
    @govardhansai8838 9 часов назад

    we need to pass onclick event as arrow function right how it is working here

  • @rohanmalakar08
    @rohanmalakar08 3 месяца назад +1

    Consistency++

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

    Thank you ❤

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

    thank you

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

    continue it bhiya

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

    Sir please explain about how 'state batching works' in react. In the basic counter example, when multiple state updating is done, until a callback function is used it doesn't work, why is that?

  • @AkashYadav-di6kd
    @AkashYadav-di6kd Месяц назад

    useRef completed

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

    thankyou sir

  • @govindprajapati3354
    @govindprajapati3354 3 месяца назад +1

    mock test is not working on your website codehelp

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

    maja aagyaa bhaiyaaa....

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

    Sir ek mini project bhi lejiye plz

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

    bhiyaa thanks for educate us

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

    Thank you sir

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

    guys please like and share the videos

  • @HrishabhPatel09
    @HrishabhPatel09 29 дней назад

    I think its used because useState is Asynchronous in nature

  • @user-A253
    @user-A253 3 месяца назад

    very helpful

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

    Continue please

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

    Best!

  • @AnkitKumar-xm1uu
    @AnkitKumar-xm1uu 18 дней назад

    sir ji aapne do variable liye hai count and useref wala variable main agar count wala variable nhi le raha hu to ye kam nhi kar raha hai

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

    First comment and view

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

    bhaiya or jaldi jaldi videos daalo

  • @Xcoder__1957
    @Xcoder__1957 3 месяца назад +2

    Why videos aren't in 4k?

    • @unstoppable-ayush
      @unstoppable-ayush 3 месяца назад

      Are bhai tu video 360p pr bhi dekh skta hai

    • @Xcoder__1957
      @Xcoder__1957 3 месяца назад +2

      @@unstoppable-ayush why ??? Bhaiya can upload in 4k his few videos are in 4k. Hope bhaiya will upload in 4k

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

    bhaiya 1 video roj lao na

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

    ForwardRef explain kardo sir

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

    Bhaiya stop watch wale code me agar start button pe multiple times clicks kare toh timer fast chalne lagta hai.
    How to fix that issue

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

    Ab SQL course leke aao sir plsss

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

    2 video daily sr

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

    Understand

  • @AkashRewani-n1t
    @AkashRewani-n1t 3 месяца назад

    Website Mock Test Not Working

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

    Great

  • @AbhishekAbhishek-lh3vx
    @AbhishekAbhishek-lh3vx 3 месяца назад +1

  • @soghgg
    @soghgg 3 месяца назад +1

    hi placement nahi lag rahi\

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

    Smjh gya

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

    ❤❤❤❤

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

    😍😍😍

  • @android5-minutetricks992
    @android5-minutetricks992 9 дней назад

    Wow

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

    bahi baqi videos be upload kr do plz

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

    Massallah

  • @adarshsharma6085
    @adarshsharma6085 3 месяца назад +1

    🙏🙏👍👍❤❤👌👌🔥🔥

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

    super++

  • @AkashYadav-di6kd
    @AkashYadav-di6kd Месяц назад

    ek aur pyaara sa comment

  • @akshmewliwal4986
    @akshmewliwal4986 11 дней назад

    understood++

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

    12 din lag gaye redux sikhne m....🤪

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

    🙂

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

    comment😁

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

    video ana closed ho gya , bhaiya