Lifting State Up
Concept Check Medium
Question
What does 'lifting state up' mean in React?
Hint
Think about two siblings that need the same data.
Explanation
When two sibling components need to share the same state, you 'lift' that state up to their nearest common parent. The parent holds the state and passes it down as props to both children. This keeps the data in sync and is the React-idiomatic way to share state between components.
Related Resources
Related Lessons
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.