Manipulating the DOM In ReactJS | useRef

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

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

  • @maxwellosuji4096
    @maxwellosuji4096 2 года назад +5

    I’m a newbie in react i was actually trying so many ways to manipulate a jsx element when a button is click. I’ve struggled with that for hours. Didn’t know it’s basically using “useRef”. Thanks so much i achieved so mucu from your videos

  • @TriinTamburiin
    @TriinTamburiin 3 года назад +5

    I don't really need to manipulate the DOM, but need to get a value from a hidden input, so watching this tutorial to see if useRef is that what i need :)

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

    I was waiting for you to show more in-depth stuff like how to change the innerHTML, using datasets and more.

  • @owltrades
    @owltrades 3 года назад +3

    Simple as that, I am a beginner in React and that's what I am looking for two weeks. You are great. Love From Pakistan ❤️❤️

  • @theavazov
    @theavazov 2 года назад +1

    Wow very useful, you saved my IT career bro

  • @paulothiago5782
    @paulothiago5782 3 года назад +5

    Searching how to make the scroll slower on my website I figured out this awesome channel. You are doing a great job, Pedro.
    Btw, your name is very common here in Brazil, so I was wondering where you from

    • @PedroTechnologies
      @PedroTechnologies  3 года назад +2

      Sou br kkkkkkk Meu nome é bem comum mesmo! Fico feliz que está gostando dos videos!

    • @edu-correia
      @edu-correia 3 года назад

      @@PedroTechnologies Inglês impecável hein mano, nem consegui reparar o sotaque

  • @hamdanidinulhaq8683
    @hamdanidinulhaq8683 3 года назад +1

    man, finally i found the tutorial that really useful, big thanks

  • @f3-faithfitnessfinance
    @f3-faithfitnessfinance 4 года назад +3

    The intro is smooth🔥

  • @sanjeevdutta7760
    @sanjeevdutta7760 2 года назад

    Really great explained, I am becoming your fan slowly, keep it up

  • @ThColinPereira
    @ThColinPereira 3 года назад +1

    amazing video pedroski!

  • @tanayraikuwar3422
    @tanayraikuwar3422 2 года назад

    This is the video I am searching for... Thanks sir.. 😊

  • @abhishekrawat8579
    @abhishekrawat8579 4 года назад +2

    this is it what I am waiting for.....❤️❤️❤️

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

    Great work pedro.

  • @AlejandroLopez-tb4un
    @AlejandroLopez-tb4un 3 года назад +2

    Great explanation Pedro, thanks for sharing 👍.

  • @eshw23
    @eshw23 3 года назад +2

    Hey so is there any point of learning the DOM if it isnt supposed to be used in React?? Thank you

    • @PedroTechnologies
      @PedroTechnologies  3 года назад +1

      It is useful for many other libraries, and it always good to know. But for react, I would say no.

  • @medipakpagare
    @medipakpagare 3 года назад +1

    So simply explained. Very good video.

  • @obaidabbasi7156
    @obaidabbasi7156 2 года назад

    Nice explanation!
    Need more on dom manipulation

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

    Great video! Simple example and easy to understand. TY!!

  • @programer9620
    @programer9620 2 года назад

    Thanks brother , it was really helpful.

  • @apeiron4409
    @apeiron4409 4 года назад +2

    useful tutorial. Thank you!

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

    your videos are very helpful i appreciate it

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

    thank you very muchhhh. I got it finally

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

    Thank you so much.. really helpful tutorial

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

    Amazing video! Thanks for the great work :-)

  • @f3-faithfitnessfinance
    @f3-faithfitnessfinance 4 года назад +5

    Believe it or not man, you are very inspiring in terms of productivity.
    I was able to study different stuffs before getting a job but now after getting one, I am just not able to find time.
    How do you manage to do all of these (RUclips, job, studies and college)?
    Help me out brother😅

    • @PedroTechnologies
      @PedroTechnologies  4 года назад +3

      Hahaha thank you so much bro! The past year has been the most productive to me, I can make a video on how I structure my day hahaha. I work from 7 am to about 9pm so I get enough time for everything!

    • @f3-faithfitnessfinance
      @f3-faithfitnessfinance 4 года назад

      @@PedroTechnologies Really cool man!
      Please do a video on that 👍

  • @karanchoudhary1596
    @karanchoudhary1596 4 года назад +2

    What's your VS Code theme ?

  • @antenehyehalem5963
    @antenehyehalem5963 4 года назад +1

    your video is awesome and very explantory keep doing it

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

    Thank you so much sir 🤩

  • @jonsnow7360
    @jonsnow7360 2 года назад

    this helped me solve my issue thank you @PedroTech

  • @henriquekutner6724
    @henriquekutner6724 3 года назад +2

    Outro vídeo que está me salvando

  • @viniciusfelipipereira2666
    @viniciusfelipipereira2666 3 года назад

    Vlw cara, vc me ajudou bastante, belo video.

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

    Thank you so much ❤️

  • @jhon.bianchi
    @jhon.bianchi 3 года назад

    Thank you pedro is helpfull alot

  • @rangabharath4253
    @rangabharath4253 4 года назад +1

    Awesome bro 😎👍

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

    how did you manage to draw a circle with border-radius:100%

  • @ia5852
    @ia5852 3 года назад

    Awesome...thank you

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

    are you from brazil?

  • @alwynsou
    @alwynsou 2 года назад

    my god I love you tysm!!!!

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

    thanks so much

  • @mofe620
    @mofe620 2 года назад

    Thankssss

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

    Useref is very important

  • @parimalpatil0709
    @parimalpatil0709 2 года назад

    Awesome

  • @romimaximus
    @romimaximus 3 года назад +1

    I always get confused between "useRef" and "CreateRef" ....🤣

    • @PedroTechnologies
      @PedroTechnologies  3 года назад +1

      Hahaha no worries, useRef is the hook and create ref just creates a reference to an element

  • @aprl
    @aprl 2 года назад +1

    too bad the video didn't really explain why manipulating the DOM is bad or show an example

    • @PedroTechnologies
      @PedroTechnologies  2 года назад

      Manipulating the dom is not bad, its just against what react preaches. In react, your UI should be altered depending on the state of the application, and not manually by editing its elements. I should've made it clearer, thank you for the feedback :)

  • @paulohfsantos
    @paulohfsantos 4 года назад +1

    massa hein

  • @juniorrodrigues3197
    @juniorrodrigues3197 3 года назад

    Dude, how did you learn English?

  • @haroondeveloper
    @haroondeveloper 2 года назад

    love from pakistan

  • @SahraClayton
    @SahraClayton 3 года назад

    thank fuck not a video showing us how to get input to focus

  • @absurdemtiefer1950
    @absurdemtiefer1950 2 года назад

    Holy shit - you can cut 50% of that video - stop talking in circles