Keys in React are special string attributes used to uniquely identify elements in a list. They help React efficiently update, insert, or remove items during re-rendering by tracking which items have changed.
Improve Performance ⚡
Must Be Unique Among Siblings 🧩
Avoid Using Index as Key (Unless Static) 🚫
Helps Maintain Component State 🧠