Hooks in React:
useRef():
It is used to access the DOM element
It is used to create mutable variable which will not re-render the component
Syntax:
const variableName=useRef(Optional initialValue);
example:
UseReference.jsx
import React, { useEffect, useRef, use...
reactjsbynitin.hashnode.dev5 min read