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