DEV Community

Discussion on: React key attribute: best practices for performant lists

Collapse
 
miketalbot profile image
Mike Talbot ⭐

Fantastic article as always. Really nice idea on why keeping the key as index benefits performance! I'd suggest some heavy commenting in components used beneath that structure, adding a bit of state or sub components would behave unnaturally I'd suppose and a future dev would want to get why!

Collapse
 
adevnadia profile image
Nadia Makarevich

I'd suggest some heavy commenting in components used beneath that structure

100%! Every time we're using something unusual, we should make sure the rest of the team are not confused by it now or in the future.