The warning 'Each child in a list should have a unique 'key' prop' in React occurs when rendering lists of elements, such as when using the map() function to generate an array of components.
The key prop is important for efficiency in re-renders, providing stable identity, and avoiding bugs.
The key should be unique and consistent for each item in the list.
Common mistakes include using the array index as the key and having non-unique keys.