React·100 questions

How to avoid prop drilling?

Answer
Lift components closer to each other.
Use composition (children) and render props.
Use Context for truly global state.
Use store for complex shared state.
Do not turn Context into a trash heap.
Was this answer helpful?

More questions in this topic

Related questions from other topics