React — Interview Questions & Mental Models
Lifting state up
- Put shared state in the nearest common ancestor and pass callbacks down.
- Avoids prop drilling explosion — then introduce Context or state libraries when many intermediaries only forward props.