Skip to content
React·Advanced·Conceptual·1 min read

What is 'prop drilling', and how does context-based composition avoid it?

Short interview answer

Prop drilling is passing a prop down through several intermediate components that don't use it themselves, only to reach a deeply nested consumer; compound components sidestep this by having each piece read shared state directly from context instead of via props.

Key takeaway

Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.

← Back to Component composition patterns

Related questions