Using Index of an array as KEY Can Lead to Bad Consequences

Every application makes use of Lists/arrays in one or the other way. When working with lists in React, one need to be more cautious, because of the key prop which is used with elements within array. key prop is an identity to an element in the DOM. So, it is expected to be unique and […]

Every application makes use of Lists/arrays in one or the other way. When working with lists in React, one need to be more cautious, because of the key prop which is used with elements within array.
key prop is an identity to an element in the DOM. So, it is expected to be unique and static in order to differentiate between the elements. If you fail to pass key prop, you will end up seeing this in your console .
Source: Codemancers