A

Admin • 802.91K Points
Coach

Q. What does `useRef` return?

  • (A) A mutable ref object with a current property
  • (B) An immutable reference
  • (C) A function
  • (D) A DOM node
  • Correct Answer - Option(A)
  • Views: 7
  • Filed under category React JS
  • Hashtags:

Explanation by: Admin
useRef returns a mutable object whose .current property can hold a reference to a DOM node or value.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.