State Management · Junior · Question 15 of 75
What is "lifting state up"?
- ✓Correct answer: Moving state into the closest common parent so siblings can share it via props
- 2Moving all state into one global store at the top of the app
- 3Storing state in
windowso any component can read it
Explanation
Two components that must stay in sync shouldn't each have their own copy. The parent owns the state and passes the value plus a callback down. This is the first tool to reach for, before Context or a store.