Each child in a list should haveenter image description here a unique "key" prop.
CodePudding user response:
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
CodePudding user response:
I highly recommend you to read this documentation Lists and Keys