user image

Preeti Tripathi

Job Interview Skills
English
2 years ago

33. What purpose do keys provide in React?

user image

Abhishek Mishra

2 years ago

A “key” is a special string attribute you need to include when creating lists of elements in React. Keys are used in React to identify which items in the list are changed, updated, or deleted. In other words, we can say that keys are used to give an identity to the elements in the lists.

Recent Doubts

Close [x]