You shouldn't use an index as key of the element
photo by ThisisEngineering RAEng on Unsplash
Let me brief you about discussion, in React or any other stack when we need to present line of code with records of an array we use either foreach, map or for a loop. And when we do that it's good to have ...
rajnishkatharotiya.hashnode.dev
fengxh
front-end developer
It is exactly the problem. I always pass the id or code field as key in React/Vue.
shortedRow.map(data => <Component key={data.id} />)