Learn the useRef Hook in React
What is the useRef hook?
The useRef hook is one of the most used hooks in react. It returns an object with a single property called .current.
With useRef, you can do the following.
Access the DOM elements.
Access data that persist across re-renders....
benjaminsemah.hashnode.dev3 min read