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?