What is refs in ReactJS? When might you use refs?
The ref is used to return a reference to your element. Refs should be avoided in most cases but they can be useful when you need DOM measur...

https://www.interviewquestionspdf.com/2017/02/what-is-refs-in-reactjs-when-might-you.html
The ref is used to return a reference to your element. Refs should be avoided in most cases but they can be useful when you need DOM measurements or to add methods to your components.