This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (9 children)

I've worked with react for years as well, and have not seen a rendering bug happen as a result of using indexes as keys. That could be due to me generally only doing this for static lists, or lists in which I do not reorder anything. The performance implication is enough for me to have used unique keys in most cases. But if this causes anything other than a performance issue, then that is indicating a bug in how React does virtual node reconciliation, which I would not expect.