Skip to content

EasyConceptReact in depth

Why do list items need a stable key?

What a good answer covers

Keys let React match items between renders so it keeps their state and avoids unnecessary re-creation. Use a stable unique id, not the array index, when items can reorder.

More on React in depth

Flashcards for this topic