πŸ“Š React Js
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
πŸ’¬ Discuss
βœ… Correct Answer: (A) A mutable ref object with a current property

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

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

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
60
Total Visits
πŸ“½οΈ
9 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
90%
Success Rate