useRef hook in React
📑 Prerequisites
Basics of react hooks
Basics of JavaScript
🤔 What is useRef?
useRef is the react hook that let you store the reference value which will not change due to component re-render.
The syntax of useRef is:
const ref = useRef(initialValu...
·4 min read·sanketdhabarde.hashnode.devRead the article
Peter Machele
great