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

Should every reusable component read application context?

Short interview answer

No. Excessive implicit dependencies reduce portability and testing clarity. Prefer explicit props for local component data, using context for genuinely cross-cutting dependencies or compound-component coordination.

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