1. Home
  2. Computer Science MCQs
  3. REACT
  4. Which React hook stores a mutable value that persists…

Added 2 Nov 2026

Which React hook stores a mutable value that persists across renders without causing a re-render?

  1. useEffect
  2. useRef Correct answer
  3. useState
  4. useMemo

Correct answer

B. useRef

14 views

MCQSEXAM

Explanation

useRef returns an object whose .current property survives re-renders. Changing it does not trigger an update, which makes it useful for DOM references, timers and previous values.

Reference

Asked in: React Interviews, Frontend Developer Tests

Preparing for an exam?

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More REACT MCQs

Practise all REACT MCQs

Similar MCQs