DEV Community

Discussion on: React: Efficiently Rendering Lists

Collapse
 
daveskull81 profile image
dAVE Inden

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.