what is useref in react js in hindi || useref interview questions || react js hooks in 2023 #15
React tutorial in Hindi useRef Hook example || useRef Hook in Hindi || React Hooks for beginners.
In this react js tutorial for beginners series we learn what is useRef and how to useRef it with interview questions in react js. This video is made by rohit azad malik in the Hindi Language.
The useRef Hook allows you to persist values between renders. It can be used to store a mutable value that does not cause a re-render when updated.
useRef returns a mutable ref object whose .current property is initialized to the passed argument (initialValue). The returned object will persist for the full lifetime of the component.
It create a mutable variable which will not re-render the components.
1.It can be used to store a mutable value that does not cause a re-render when updated.
2. It can be used to access a DOM element directly.
Accessing the DOM nodes or React elements
A ref created with useRef will be created only when the component has been mounted and preserved for the full lifecycle.
Guys, Please support my channel by SUBSCRIBE to my channel and share my videos in your Social Network TimeLines.
useMemo hook:- • what is usememo hook in react | useme...
Visit The Complete ReactJs Course - Basics to Advanced playlist :- • react js tutorial playlist in hindi ...
Guys, Please support my channel by SUBSCRIBE to my channel and share my videos in your Social Network TimeLines.
So, Like , subscribe, share, and support to keep us motivating.
Don't Forget to Follow me on all Social Network,
Twitter: / rohitazad
Facebook: / rohitazadmalik
Stackoverflow: https://stackoverflow.com/users/13654...
LinkedIn: / rohitazad
Github: https://github.com/rohitazad