React | Lists and Keys | Question 2

Last Updated :
Discuss
Comments

What is the role of keys in lists in React?

To identify the list items uniquely

To render lists faster

To update the component when state changes

To ensure proper indexing of array elements

Share your thoughts in the comments