useRef hook
Let us now learn about a new react hook which is the useRef hook
The syntax of the useRef hook
let dhruv=useRef(1);
From the above syntax we notice that useRef function returns an object and the object looks like
dhruv={current:1}
Thus the object on...
dhruv-web-dev.hashnode.dev2 min read