The useRef Hook in React | Sigma Web Development Course - Tutorial

  Рет қаралды 91,232

CodeWithHarry

CodeWithHarry

Күн бұрын

Пікірлер: 453
@Harshitupadhyay780
@Harshitupadhyay780 10 ай бұрын
harry sir plz dont stop posting videos in this course we r continously following your coarse...you are the best
@AIMasteryHub-nz2uy
@AIMasteryHub-nz2uy 10 ай бұрын
Your course > 16laks degree❤❤❤❤❤from Pakistan You are one of the best teacher of my life❤
@Abdul_rafey
@Abdul_rafey 10 ай бұрын
You are wrong😂
@GODGAMING-vl1bb
@GODGAMING-vl1bb 10 ай бұрын
Aree bhai 😂
@podshortscastt
@podshortscastt 10 ай бұрын
PK mai 16L ki degree hoti bhi hain
@Heart-495
@Heart-495 10 ай бұрын
Habib university​@@podshortscastt
@RajdeepDas-oo5gz
@RajdeepDas-oo5gz 9 ай бұрын
​@@podshortscastthar kisi ko chota mat dikhao 😒
@Billionaire-wh5fp
@Billionaire-wh5fp 10 ай бұрын
00:01 The useRef hook is used to create a variable that persists during re-renders. 02:06 Understanding re-rendering due to state variable changes 03:44 React introduces useRef hook to persist variable values across re-renders. 05:40 The useRef hook allows for persisting a value across re-renders. 07:31 The useRef hook allows direct referencing without DOM manipulation 09:16 The useRef Hook in React allows accessing and manipulating DOM elements. 11:06 The useRef hook in React allows for persisting values across re-renders. 12:52 Referring to elements using the useRef hook in React
@AyanKhan-nx3in
@AyanKhan-nx3in 10 ай бұрын
Consistency ka badshah ❌Harry Bhai✅
@prasenjitnayak_
@prasenjitnayak_ 10 ай бұрын
HarryBhai tells consistency to be consistent 🗿
@zararkhanzoro1591
@zararkhanzoro1591 10 ай бұрын
Absolutely love ❤❤❤ Harray's KZbin channel! Massive thanks from Pakistan for the incredible lessons in both the channel and the course. I've learned so much-thanks, Sir Haris Ali Khan! Your dedication and expertise have made the learning experience exceptional. Grateful for the valuable insights! (Love from Pakistan )❤
@aizajsamani8894
@aizajsamani8894 10 ай бұрын
Itni Raat Ho gayi hai , pura video dekh liya hu, Nind aa rahi thi isliye kal ek baar phir se dekhna padega kyuki concept mere liye new tha. Thank you Bhaiyya❤❤
@saurabhyadav9698
@saurabhyadav9698 5 ай бұрын
saari raat soya nahi...subah mujhe sone do, neend puri huyi nahi khwab pure hone do...
@aizajsamani8894
@aizajsamani8894 Ай бұрын
@@saurabhyadav9698 🤣🤣
@jagadeeshkishore3242
@jagadeeshkishore3242 10 ай бұрын
this course is really good, focusing on the basics and the individual elements with simple and effective examples
@Hafijur0211
@Hafijur0211 9 ай бұрын
🎯 Key Takeaways for quick navigation: 00:00 *🧠 Understanding the basics of the useRef hook,* - The useRef hook in React is useful for creating variables that persist between renders. - State variables trigger re-renders when changed, useRef variables do not. 00:59 *🔄 Controlling re-renders with useRef,* - Changing the value of a useRef variable does not trigger re-renders of the component. - useRef is useful for storing mutable values that do not trigger re-renders. 02:18 *🛠️ Managing state with useRef,* - Using useRef to manage state allows you to control when re-renders occur. - By using useRef for state management, you can optimize performance by avoiding unnecessary re-renders. 03:59 *🔍 Understanding the useRef Hook in React* - React's useRef hook is used to solve problems where components are re-rendered unnecessarily. 06:02 *🔍 Using useRef to Avoid Unnecessary Rerenders* - When using the useRef hook, the component doesn't re-render when the referenced value changes, unlike when using state. 07:11 *🔍 Using useRef to Reference Elements* - useRef can be used to reference elements directly, avoiding the need for direct DOM manipulation. 08:16 *🎨 Understanding the useRef Hook in React* - The useRef hook in React allows for creating references to DOM elements or values that persist across renders. - It's commonly used to access or manipulate DOM elements directly in React, without resorting to direct DOM manipulation. - Refs created with useRef don't trigger re-renders when their value changes, making them useful for scenarios where you need to hold onto a value across renders without causing re-renders. 10:34 *📖 Documentation highlights for React's useRef Hook* - The documentation for useRef emphasizes that changing the ref.current value doesn't cause a component to re-render. - It warns against manipulating ref.current during rendering and suggests using refs when you need to access a value in the DOM that isn't being updated in the UI. - It's recommended to use refs when you want to change a value without triggering a re-render, and you want to persist the value across renders while also updating the UI. 11:58 *🎯 useRef Hook for preserving values during re-render,* - Examples of useRef in action: a click counter that persists value even after re-render, and a stopwatch that uses useRef to store the current time. 12:41 *🕰️ useRef for storing values without causing re-renders,* - Demonstrates useRef to store a timer's start time and an interval reference without causing re-renders, allowing for efficient component updates. 13:11 *🖼️ Advanced useRef usage for managing focus and scroll,* - Utilizes useRef to manage focus on elements without direct DOM manipulation, and demonstrates scrolling an image into view using useRef in React, showing the versatility of useRef in complex UI interactions. Made with HARPA AI
@areebnadir5778
@areebnadir5778 10 ай бұрын
00:01 The useRef hook is used to create a variable that persists during re-renders. 02:06 Understanding re-rendering due to state variable changes 03:44 React introduces useRef hook to persist variable values across re-renders. 05:40 The useRef hook allows for persisting a value across re-renders. 07:31 The useRef hook allows direct referencing without DOM manipulation 09:16 The useRef Hook in React allows accessing and manipulating DOM elements. 11:06 The useRef hook in React allows for persisting values across re-renders. 12:52 Referring to elements using the useRef hook in React Crafted by AI.
@rulersonicboom4737
@rulersonicboom4737 8 ай бұрын
Humanity is on it's doom.
@The-Giggle_Factory-u2c
@The-Giggle_Factory-u2c 10 ай бұрын
Summary The useRef Hook in React is explained in this tutorial from the Sigma Web Development Course. Highlights 🎯 The useRef Hook is a way to access and manipulate DOM elements or values that persist across component renders. 📚 It can be used to create a reference to a DOM element and access its properties and methods. 💡 The useRef Hook can also be used to store mutable values that do not trigger a re-render when changed. 🔗 It provides a way to maintain stateful values without using the useState Hook. 🌟 The useRef Hook is useful for implementing focus management, triggering animations, and accessing previous values. 🖥 This tutorial is part of the Sigma Web Development Course and provides a comprehensive explanation of the useRef Hook in React. 📝 The useRef Hook is a powerful tool that enhances the functionality and flexibility of React components.
@houseofilm07
@houseofilm07 10 ай бұрын
Copy paste 😂😂
@The-Giggle_Factory-u2c
@The-Giggle_Factory-u2c 10 ай бұрын
@@houseofilm07 auto generate h bhai ai ka 😜 me koi copy paste nhi karta hu
@amir4ever148
@amir4ever148 10 ай бұрын
samaj nahi aya lekin pad kar achcha laga kuch to good work hoga isme 👍👍
@ketkipatil8309
@ketkipatil8309 6 ай бұрын
nice summary
@Neelammkw
@Neelammkw 10 ай бұрын
Amazing apka dava... nahi guarantee he ..pura samaj me aa gaya.... 😇🥰
@shakeel_developer-f7x
@shakeel_developer-f7x 10 ай бұрын
CodeWitharry is the best teacher in the world of programming Love you Harry Bhai from Pakistan
@areebnadir5778
@areebnadir5778 10 ай бұрын
CodeWitharry Nahi CodeWithHarry 😁😁
@Hatthetail
@Hatthetail 9 ай бұрын
#CodewithHarisAlikhan 🗿
@AmanKumarSinhaOfficial
@AmanKumarSinhaOfficial 10 ай бұрын
🚀 React OP 🚀 Harry Bhai OP 🚀 Sigma OP 🚀
@mk_respect48
@mk_respect48 10 ай бұрын
Your course > 16laks degree❤ love you from Pakistan You are one of the best teacher of my life❤
@lakshaymahajan8457
@lakshaymahajan8457 10 ай бұрын
Your course is damn good and awesome for anyone to learn.
@Kabirrsaini07
@Kabirrsaini07 3 ай бұрын
This course is an addiction❤‍🔥❤‍🔥
@SAJIDALI-r4j4t
@SAJIDALI-r4j4t 10 ай бұрын
sir you are the best teacher for normal student
@suinkueditz
@suinkueditz 10 ай бұрын
Bru... Yr me kase thank u khahu yr! 😫...... Bru koi sabd nhi he aapke liye.... Yr.... Thank u for this course Bru..... Agr ye paid rahta to shayad me nhi purchase krta.... Btw u r best Bru... We r always with u...... ❤
@AbhinavThatipally
@AbhinavThatipally 9 ай бұрын
The best ever course with the BEAST instructor!!!!!!!
@chmalik8610
@chmalik8610 10 ай бұрын
Bhaiya ur consistency teaches us how to be consistent ❤❤ bestest web development course ever ♥️♥️ first time itni consistency se koi course Kiya h only becz of u and plss iske baad Java basic se plzzz plzz bhaiya ♥️♥️♥️♥️
@motivational_speeches__
@motivational_speeches__ 10 ай бұрын
Your Course is better than getting the Computer Science Degree in Pakistan....
@nitinsaxena3082
@nitinsaxena3082 9 ай бұрын
Harry Bhai Aap KZbin PE best ho jo free me paid jaisa content even better than paid content provided karte ho only from your videos I'm kinda good in coding right now😊
@rishabhsharma411
@rishabhsharma411 10 ай бұрын
Thank you so much harry bhai for giving us this amazing course
@gauravpan122
@gauravpan122 21 күн бұрын
hats off to you bhaiya the way you teach and most immportant totally free
@sameershahidbutta
@sameershahidbutta 6 күн бұрын
Sigma batch aur Harry bhai dono OP hen!!
@dhrumilpanchal684
@dhrumilpanchal684 5 ай бұрын
love the way you teach harry bhaiii
@ds.zubair
@ds.zubair 10 ай бұрын
Amazing series Harry Bhai. Continue this series and include all the things in Web.
@Arnav404
@Arnav404 9 ай бұрын
You have contribute to much in coding community, the more I appreciate you the less it is.
@mintunath9267
@mintunath9267 10 ай бұрын
Harry bhai aap k bideo pai alag hi power hai
@simarpreetkaur8674
@simarpreetkaur8674 6 ай бұрын
☺☺🙌🏻🙌🏻harry bhai is more than a bhai for me🥰
@itsMohak
@itsMohak 10 ай бұрын
Very excellent
@AIMasteryHub-nz2uy
@AIMasteryHub-nz2uy 10 ай бұрын
You are the best.❤ From Pakistan ❤❤❤❤❤❤
@Subhash.Jadav19
@Subhash.Jadav19 10 ай бұрын
Bro please don't get demotivated due to the number of views, you are doing the best job in the world please continue with it and maintain its quality as you have maintained till now, #SigmaBatchOP
@Shafi242
@Shafi242 10 ай бұрын
Harry bhai , please don't stop posting videos on this Sigma web development course.We are really following sir Proceed sir Please sir
@SarbJeet-js8tl
@SarbJeet-js8tl 10 ай бұрын
This course >>>>>>> every course on net
@SubhamAdhikari-kt6fm
@SubhamAdhikari-kt6fm 10 ай бұрын
Harry sir thank you for your constant efforts, I'm in 67th video, In 1 week I will catch you.
@triloki12
@triloki12 9 ай бұрын
thank you very much sir, You are one of the best teacher my life
@sandeepmoger8973
@sandeepmoger8973 9 ай бұрын
thanks for teaching hooks in such a easy way
@AhmedRaza-ty7zq
@AhmedRaza-ty7zq 3 ай бұрын
Awesome video😎😎👍👍
@B-gmiGamer
@B-gmiGamer 10 ай бұрын
thankyou so much for making this video and i will you the next time bye!
@FatimaSaleem-s6u
@FatimaSaleem-s6u 3 ай бұрын
you explained useRef very well . Thnks alot
@omgaming6204
@omgaming6204 Ай бұрын
intro is lit🔥🔥🔥🔥
@avinashrai4369
@avinashrai4369 10 ай бұрын
Wow samajh mai aa gaya bhaiya🥰
@Zaynali._
@Zaynali._ 5 ай бұрын
You are a savior ❤❤
@MuhammadTalha-ex4id
@MuhammadTalha-ex4id 9 ай бұрын
Yes you are right, this course is enough
@codewithnaim529
@codewithnaim529 10 ай бұрын
#ReactOP 🎉🎉🎉 ❤ Sir You are Awesome ❤
@theharshbhagat
@theharshbhagat 6 ай бұрын
Any other use cases of reference? I understand this two:- 1. To persist value 2. To change dom
@studieswithkartik8532
@studieswithkartik8532 9 ай бұрын
best course for web development
@jai_ram108
@jai_ram108 10 ай бұрын
Whoever wants Harry Bhai to create a Full Mern Stack project video , Please like and comment so that it reaches our Harry Bhai. 👇🏼👍🏼
@rifatraffu2015
@rifatraffu2015 10 ай бұрын
We will also persist with this playlist Harry vai🥰🥰 #ReactOp
@FrameFablesTV
@FrameFablesTV 10 ай бұрын
loving Your videos
@r.srobin7260
@r.srobin7260 10 ай бұрын
This course is realy helpfull for us❤‍🔥
@nindagaming9303
@nindagaming9303 Ай бұрын
Course going great 👍
@Rishaavv08
@Rishaavv08 10 ай бұрын
sigma batch op 🔥💣🚀
@multicreativehub396
@multicreativehub396 7 ай бұрын
10 million subscriber ho jaye apke jaldi.
@surajjnv4925
@surajjnv4925 7 ай бұрын
Harry Bro , 👏👏👏👏such an amazing explanation. #sigma op
@isheep9025
@isheep9025 8 ай бұрын
11:13 - "he means to say that if you want to display a value in your function component , then dont use ref value because it doesnt get rendered every time it changes unlike state import { useEffect, useState,useRef } from 'react' import reactLogo from './assets/react.svg' import viteLogo from '/vite.svg' // import './App.css' import Navbar from './components/Navbar' import Footer from './components/Footer' function App() { const[count,inccount]=useState(0); const first = useRef(0) // useEffect(() => { // // alert("hello from app") // // },[]) useEffect(() => { alert("changed in app") },[] ) return ( {first.current} {first.current=first.current+1 ; console.log(first.current)}}>Update ) } export default App
@mtv-0-l4q
@mtv-0-l4q 5 ай бұрын
Sigma Batch OP🔥
@Iam_suraj00
@Iam_suraj00 4 ай бұрын
Great Bhai, awesome 🎉❤ thanks
@Kishanjha_imagination
@Kishanjha_imagination 10 ай бұрын
✨️Wonderful course and you are helping us very much by providing it for free. There are many who wants to learn but unable financially.
@ClashBegins
@ClashBegins 6 ай бұрын
IF someone has a question that how the value of a constant is changed in "UseRef " here is the answer { In React, the useRef hook is used to persist values across renders without causing re-renders when the value changes. When you declare a constant a using const a = useRef(0), a is a constant reference to the object returned by useRef. This object has a current property which is mutable.}
@yuvrajkumarsingh4984
@yuvrajkumarsingh4984 10 ай бұрын
Thanks harry bhai for this couree❤❤❤❤❤
@GauravRaj-bi9kg
@GauravRaj-bi9kg 4 ай бұрын
Good video sigma batch op !
@apmotivationakashparmar722
@apmotivationakashparmar722 Ай бұрын
Thank you So much HarryBhai !
@nomatterff8918
@nomatterff8918 7 ай бұрын
4:05 Harry bhai why we put the variable in app function, if we put the variable as a global variable it will be solved my problem 🙄🤔
@nomatterff8918
@nomatterff8918 7 ай бұрын
I need the answer If anyone knows
@New-f3o
@New-f3o 10 ай бұрын
This course is Awesome @Harrybhai we learned a lot from you Please add next js in this course
@SANTOSH_Raut
@SANTOSH_Raut 10 ай бұрын
Harry bhai, I want you to make videos on why are big companies like google, amazon, Microsoft are doing massive layoffs of IT engineers? is AI somehow the reason behind this or recession the real culprit behind this?
@SCRETBRO
@SCRETBRO 10 ай бұрын
Thanks #HarryBhai for #SigmaBatchOp #ReactOp
@HridoyKhan-nf9le
@HridoyKhan-nf9le 2 ай бұрын
Very good tuitorial..
@ashishnayak6857
@ashishnayak6857 10 ай бұрын
Sigma batch op🎉🎉🎉🎉
@sushantnamurte16
@sushantnamurte16 10 ай бұрын
Best video 🎉
@sachinpatel872
@sachinpatel872 10 ай бұрын
Intro level Dope
@coder_aj_001
@coder_aj_001 10 ай бұрын
Harry bhaiya jara hamari baat bhi suno👇.... #Sigma_Web_Deb ke baad #Python🐍 ke missing topics(Numpy💯, Pandas🐼, Matplotlib📈, Ai/ML lib. 📚, etc) bhi 💯 days mai 100% 👨‍💻 complete kardo please 🙏🙏
@rajnipareek4045
@rajnipareek4045 10 ай бұрын
#ReactOp❤ thanks alot for providing such meaningful content 😊 really loving this playlist, you are amazing sir.
@bishal928
@bishal928 10 ай бұрын
Thank you so much for the video
@AjayKumar-j8s4c
@AjayKumar-j8s4c 2 ай бұрын
React Batch OP 🔥
@cute-zy8zy
@cute-zy8zy 10 ай бұрын
Sigma batch OP❤❤❤
@muskanchaurasia1532
@muskanchaurasia1532 10 ай бұрын
#ReactOP Harry Bhai ZindaBaad😁
@a.k.a.s.h7011
@a.k.a.s.h7011 10 ай бұрын
Thanks for your hardwork.
@ghimireayuisha5888
@ghimireayuisha5888 10 ай бұрын
I am learning vue but watching your react tutorial.
@dcsalim4384
@dcsalim4384 10 ай бұрын
Quality + Quantity = CWH 🔥
@Itis_NoBody
@Itis_NoBody 10 ай бұрын
Love From Afghanistan ❤
@mathswallah933
@mathswallah933 10 ай бұрын
SIGMA OP....... BIG FAN
@saththanikaran7542
@saththanikaran7542 10 ай бұрын
So nice So good just looking like a wow 😅❤❤❤❤ Thank guruji❤❤ #SingmabatchOp
@ShivamSahu-z3r
@ShivamSahu-z3r 22 күн бұрын
sigma batch op 🔥🔥🔥🔥
@ahfvastav450
@ahfvastav450 10 ай бұрын
harry bhai op bolte
@VK_BRANDING
@VK_BRANDING 3 ай бұрын
happy teachers day sir
@SabedCode
@SabedCode 10 ай бұрын
We want Next js 🏋️
@SabedCode
@SabedCode 10 ай бұрын
Mara comment viral hoga kiya
@shivam90098
@shivam90098 10 ай бұрын
रुको ज़रा सबर(इंतज़ार) करो😅
@Surendra-ld2le
@Surendra-ld2le 10 ай бұрын
❤❤❤❤nice sir ji
@factkart2754
@factkart2754 3 ай бұрын
aapka course haris bhai paid course se bhi accha h
@HamzaShahid-s8t
@HamzaShahid-s8t 10 ай бұрын
your web dev course is awesome but we want to complete a full 0 to advanced ML course covering all the basics and advanced techniques algorithms, libraries like tensorflow and much more we will appreciate that, and remember we want theory plus practical ..........i know that you will do this
@theroyboy5384
@theroyboy5384 13 күн бұрын
Sigma batch op ❤❤❤❤
@chlorine-u5g
@chlorine-u5g 10 ай бұрын
sigma batch op react op thanks for this course
@VivekKumar-gy4hp
@VivekKumar-gy4hp 10 ай бұрын
I thank you very much brother👌
@SyedAlam-z6l
@SyedAlam-z6l 10 ай бұрын
Greate ❤🎉 Harry bahi react forms pe bhi video banaw please wo mushkil Hain please Achi se samjado from Pakistan Allah apko lambhi Zindagi dy
@RMRBD
@RMRBD 10 ай бұрын
LOVE YOU BROTHER
@user-ml1ev
@user-ml1ev 2 ай бұрын
Harry bhay OP!
@S-for-Study
@S-for-Study 10 ай бұрын
Harry bhai! Kya app react js ke baad next js ko sikhoge? Do you teach us next js after completing react js?🤔
@rishabhtripathi2685
@rishabhtripathi2685 10 ай бұрын
Kya useref ka jyada use ni karna chahiye react Project me
@Undefined_kabir
@Undefined_kabir 10 ай бұрын
Amazing bhaiya you are almost great
When to use "useRef" React Hook
29:28
CodeHelp - by Babbar
Рет қаралды 15 М.
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
Why you need hooks and project
28:18
Chai aur Code
Рет қаралды 307 М.
Топ 5 ОШИБОК Новичков в REACT
13:07
gorbatkoff
Рет қаралды 2,5 М.
Learn useRef in 11 Minutes
10:20
Web Dev Simplified
Рет қаралды 654 М.
5 Mistakes Beginner Web Developers Make (Avoid These)
12:09
CodeWithHarry
Рет қаралды 124 М.
React useEffect Hook
14:41
Piyush Garg
Рет қаралды 51 М.
Google releases are insanely good
14:08
Chai aur Code
Рет қаралды 59 М.
useRef hook in reactjs | Easiest way
19:44
Hitesh Choudhary
Рет қаралды 83 М.
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН