React | Lists and Keys | Question 5

Last Updated :
Discuss
Comments

What happens if you don't assign keys to list elements in React?

React will throw an error

React will render the list but might not optimize the update process

The list will not render

React will assign random keys automatically

Share your thoughts in the comments