DEV Community

Discussion on: How to develop a Stopwatch in React JS with custom hook

 
killcodex profile image
Aaquib Ahmed

I want to understand the actual use of ref and why it should not use frequently

Thread Thread
 
abdulbasit313 profile image
Abdul Basit

in react we use useRef to get the dom element. Let say you want to find out scroll position and things like this.