What is the use of refs?

Technology CommunityCategory: ReactWhat is the use of refs?
VietMX Staff asked 4 years ago

The ref is used to return a reference to the element. They should be avoided in most cases, however, they can be useful when we need direct access to DOM element or an instance of a component.

Please Disable AdBlock Plus and Refresh Website