From Dev.to
Why React Needs key: The Bug That Moves Your Input to the Wrong Row
Picture a shopping list with a note field on each row: {items.map((item, i) => ( {item.name} ))} The list is Milk, Eggs, Bread. You type "2 dozen" next to Eggs. Then you delete Milk. The l...
