React | Lists and Keys | Question 2

Last Updated :
Discuss
Comments

If two items in a list swap places but keep the same keys, React will:

Re-render both items

Destroy and recreate both items

Just move the items without re-rendering content

Throw a key mismatch warning

Share your thoughts in the comments