Q. Which hook is used to store a mutable value that does not cause re-render?

  • (A) useMemo
  • (B) useRef
  • (C) useState
  • (D) useEffect
πŸ’¬ Discuss
βœ… Correct Answer: (B) useRef
Explanation: useRef stores a mutable value that persists across renders without triggering re-render.
Explanation by: Mr. Dubey
useRef stores a mutable value that persists across renders without triggering re-render.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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