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...
sanketdhabarde.hashnode.dev4 min read
Peter Machele
great