Refs are a function in React having the following uses:

  • Accessing DOM and React elements that you have created.
  • Changing the value of a child component without using props and others.
BY Best Interview Question ON 30 Jun 2020

Suggest An Answer