useRef in React
Expert-Level Explanation
useRef is a hook that returns a mutable ref object whose .current property is initialised with the passed argument. The object returned from useRef will persist for the full lifetime of the component. It’s commonly used for a...
akashthoriya.hashnode.dev1 min read