Q. Which of these hooks is useful for referencing a DOM node?

  • (A) useRef
  • (B) useMemo
  • (C) useCallback
  • (D) useReducer
πŸ’¬ Discuss
βœ… Correct Answer: (A) useRef
Explanation: useRef returns a mutable ref object which can be assigned to DOM elements.
Explanation by: Mr. Dubey
useRef returns a mutable ref object which can be assigned to DOM elements.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
73
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
94%
Success Rate