React JS, which was created by Facebook, is today's most popular JavaScript Library for building User Interfaces. We can use React to build sleek, ...
For further actions, you may consider blocking this person and/or reporting abuse
Great post. I feel like it is so easy to give the index of an item as the key for a list that many people do it just to get the error to go away in their console. I see lots of tutorials suggest this too since they aren’t covering the
key
property specifically. But, this could be a serious performance issue in a big application. I really like this article on thekey
prop by Kent C. Dodd. It goes over similar issues to what you’ve shown here.Definitely something that I probably overlooked in the past. Thanks for the heads up!
Is that really necessary? Thought it only has to be unique within the array you're rendering?