Concepts

Reserved component key

React uses key for identity among sibling elements. A component that needs the same identifier must receive it through a separate application prop.

Formal Syntax & Structure

react syntaxreact
<Item key="paper" id="paper" />

Working Example

Example Snippetreact
function Item({ id }) { return <p>{id}</p>; }const item = <Item key="paper" id="paper" />;
React Reference