Recall & Review
beginner
What does "lifting state up" mean in React Native?
It means moving shared state from child components to their closest common parent so they can share and update data together.
Click to reveal answer
beginner
Why do we lift state up in React Native apps?
To keep data consistent between components that need to share or sync information, avoiding duplicated or conflicting states.
Click to reveal answer
beginner
In lifting state up, where should the state live?
The state should live in the closest common parent component of all components that need to access or change that state.
Click to reveal answer
intermediate
How do child components update lifted state?
The parent passes down functions as props to children. Children call these functions to update the state in the parent.
Click to reveal answer
intermediate
What is a simple example of lifting state up?
Two input fields share the same text state lifted to their parent. When one input changes, the parent updates the state and passes it down to both inputs.
Click to reveal answer
What is the main reason to lift state up in React Native?
✗ Incorrect
Lifting state up allows sibling components to share and sync state by moving it to their common parent.
Where should the lifted state be stored?
✗ Incorrect
The state should live in the closest common parent so all children needing it can access it via props.
How do child components update the lifted state?
✗ Incorrect
Parents pass down update functions as props; children call these to request state changes.
Which of these is NOT a benefit of lifting state up?
✗ Incorrect
Lifting state up actually connects components by sharing state, so they are not independent.
If two sibling components need to display the same data, what should you do?
✗ Incorrect
Lifting state up to the parent allows both siblings to share the same source of truth.
Explain in your own words what "lifting state up" means and why it is useful in React Native.
Think about how siblings can share information through their parent.
You got /4 concepts.
Describe a simple example where lifting state up improves your app's behavior.
Imagine two text inputs showing the same text.
You got /4 concepts.