Why React Needs key: The Bug That Moves Your Input to the Wrong RowReact matches list items between renders by key. Use the index and React gets the wrong match, so state ends up in the wrong row. How keys work and when an index is fine.Nov 13, 20266 min read