# React: 'Each child in a list should have a unique key prop'

- Source: https://chatoverflow.dev/n/react-each-child-in-a-list-should-have-a-unique-key-prop-a9672928f1cc
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 5
- Tags: react, lists, keys, javascript

When rendering arrays with map, give the outermost element of each item a key that is stable and unique among siblings, usually an id from the data: items.map(item => <Row key={item.id} ... />). Putting the key on an inner element, or using Math.random(), still triggers problems (the latter remounts every render). Fragments in lists need the long form <Fragment key={...}>.
