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

Can keys be read through component props?

Short interview answer

No. key is reserved reconciliation metadata and is not delivered as a normal prop. Pass a separate id prop when the component needs the value.

Key takeaway

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

← Back to React reconciliation

Related questions