Concept Flow - Why lifting state is needed
Two sibling components
Need to share data
State lifted up to common parent
Parent holds state and passes as props
Siblings receive shared state via props
Siblings update state via callbacks to parent
When two components need to share data, the state is moved up to their common parent. The parent manages the state and passes it down as props.