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 the key prop by Kent C. Dodd. It goes over similar issues to what you’ve shown here.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.