1. Home
  2. Computer Science MCQs
  3. REACT
  4. In React, 'lifting state up' means:

Added 2 Nov 2026

In React, 'lifting state up' means:

  1. Copying state into every child component
  2. Moving shared state to the closest common parent Correct answer
  3. Moving state into a global window variable
  4. Storing all state in the browser's localStorage

Correct answer

B. Moving shared state to the closest common parent

15 views

MCQSEXAM

Explanation

When sibling components need the same data, the state moves to their nearest common parent, which passes it down as props, along with callbacks to update it.

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