'React error: Each child in a list should have a unique “key” prop [duplicate]
Each child in a list should have a unique "key" prop. Screenshot
Solution 1:[1]
When mapping in react, react needs to identify each component by its unique key, so when user interact with component it will know exactly where to address, at the div container you can pass as key={showroom_id} ...
PS, react uses className instead of class, hence you are getting another error on top
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Johan |
