Web / ReactJS Interview questions
What is the purpose of REF in react?
The ref is used to return a reference to the element. Refs should be avoided in most cases, however, they can be useful when we need DOM measurements or to add methods to the components.
More Related questions...