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

What happens with nested providers of the same context?

Short interview answer

A consumer reads the value from its nearest matching provider above it. Inner providers can deliberately override a dependency for one subtree.

Key takeaway

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

← Back to Context and render performance

Related questions