useRef Hook | useRef vs useState
Hey everyone , In this article, let us understand the useRef hook in React.js Syntax CODE for the video Ref Example – 1 (An Interval Timer) As a…
When to use the useRef hook ?
Hey everyone 👋🏻, In this article, let us learn about a very special React Hook called as the useRef hook and understand how and when to use it. What is the useRef hook ? useRef hook is something that I briefly discussed in one of my articles where I described useRef hook as something equivalent…
Demystifying the useRef Hook in 6 minutes
In this video, we will learn about the useRef hook in React. This hook is very similar to the useState hook that we had learnt earlier in the sense that it also persists the values across re-renders but unlike useState, useRef does not cause a re-render of the component. We will see a couple of…