React Hooks Tutorial | The useRef Hook
HTML-код
- Опубликовано: 3 окт 2024
- An explanation of the useRef Hook in React. React's useRef Hook allows us to access DOM elements in functional components. I also talk about Declarative vs. Imperative programming approaches. Created by Gregg Fine.
📖 Download my FREE "Google Search Secrets for Developers" Cheat Sheet:
store.thecodec...
🗣JOIN the Code Creative Facebook group! :
/ 1612600368887577
🔴Subscribe for more free Code Creative videos: : / @thecodecreative
🌐 The Code Creative Official Website
www.thecodecre...
🎓 The Code Creative Courses
www.thecodecre...
✅ Recommended related videos:
Web Audio API: Exploring Oscillators
www.youtube.co....
Web Audio API: createOscillator and Audio Nodes
www.youtube.co....
Web Audio API: What is Audio Context?
www.youtube.co....
✅ For business inquiries contact me at gregg@greggfinedev.com
✅ Let's connect:
Twitter - @GreggFine
Instagram - /greggfineguitar
Facebook - /hiddentigermusic
To subscribe to the channel: ruclips.net/channel/UCmOpHGj4JRWCdXhllVTZCVw
….u dude .. u are plain good … tnx for such a clear and beautiful explanation of userRef .. from now on .. I’m your BIG fan 🙏🏾
Thanks and welcome!
This was beautiful!!! So useful. Thanks for posting!
Glad it was helpful!
Omg one more perfect explanation on this channel of how hooks work. Thank you so much
Excellent 👍🏻
I love that you explain everything in detail and you're also straightforward. Thanks for the video! I love it!
Thanks Hanna, glad it was helpful!
Thank you it was a neatly explained video, and your music is awesome
Thank you kindly!
Hello !! I just discover your channel. Thank you soo much for explaining react in a comprehensive and fun way !!!. Love it!
Thanks Arthur, glad it was helpful to you!
Please make videos about other hooks! Your explanation is the best! The music is superb!
Thanks Andrey! I have an entire React Hooks playlist here: ruclips.net/p/PLMPgoZdlPumdViYuJPRQ7wqrztNp3ZcuE
way easier to understand the useRef hooks, thanks for sharing.
Great! Thanks for watching!
excellent! Only you have real examples, not the 10000 focus examples from all other tutorials! Thank you!
Hi Andrey! Great, thanks for watching!
You have a way with teaching. Good job. I hope you continue doing this and get thousands of subs. here is one now! I also do hope you create react project tutorials. keep it up, man! we are waiting for more tuts :)
Thanks Alvin and thanks for subscribing! More tuts coming soon 👍🏻👍🏻👍🏻
Nice and clear as the audio file 😉
Thanks for watching Zameerbasha!
@@TheCodeCreative it's zameer sheikh😁
Wow nice work! Where have you been all this time? Keep em coming. :)
Thank you Abeechr! More coming soon!
Great teaching voice
Thanks Gligor!
Thanks for great react videos. I had a question, can you suggest an order in which one must watch your react hooks playlist? Thanks
I would start with useState and then useEffect. Those are probably the most essential Hooks. After that, look at the Custom Hooks video. Then, useContext. Finally, the useRef/forwardRef vids. Hope that helps!
@@TheCodeCreative Thanks a ton.
@@tanzeemahmed8609 you're welcome
thanks
👍🏻
How to call child component method from parent component on click function using useRef,please help i am unable to call child component method.
Why not just put the function in the parent component? If the child component needs access to it, you could pass it down as a prop.
Which theme you are using I like the theme
It's called "Shades of Purple"
@@TheCodeCreative but shade of purple is very dark in purple have you customized it
@@saivivekravi4681 I don't believe I had customized it as far as I can recall.
Audio doesn't play for me. Went over it line by line. Could Chrome be blocking playback? Also used the latest Create-react-app, 17.0.1 Perhaps this is the issue?
It could be Chrome blocking playback. Take a look at this and see if it helps: ruclips.net/video/sLXcuCrBL-M/видео.html
@@TheCodeCreative Thanks, but no luck. In terms of a React component and the code from your demo:
useEffect(() => {
audioRef.current.play()
}, [ ])
How would I check if suspend has been called?
📖 Download my FREE "Google Search Secrets for Developers" Cheat Sheet:
store.thecodecreative.com/google-secrets-cheat-sheet
🗣JOIN the Code Creative Facebook group! :
facebook.com/groups/1612600368887577
Your videos are great but please stop inserting annoying stock images and sounds, they're distracting and not funny:)
Thanks for the feedback!