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.
PreviousAn API response changes shape and the app crashes in production despite compiling. What do you do?Next What is a controlled versus an uncontrolled input?