Never use the index for the key in React
Yesterday I was involved in a small discussion about a <a class="hover:no-underline text-blue underline" href="https://twitter.com/joshmedeski/status/1768346029273850143" target="\_blank" rel="noreferrer">Tweet</a>, which said something like: > PSA: never use the index for the key in @reactjs 🔑 #webdev #development #react I have seen that this error is more common and recurring than we would like, so I am going to try to briefly explain why we should **NOT** use index (or anything related) as keys in React. - **Stability**: The index of an item in a list can change if items are added,...
React