what are keys in react, And why do we need keys?

Forums Reactwhat are keys in react, And why do we need keys?
Staff asked 3 years ago

Answers (1)

Add Answer
Hardik Ghevariya Marked As Accepted
Staff answered 3 years ago

A key could be a special string attribute you would like to incorporate once making lists of components in React. Keys area unit is accustomed to react to spot that things within the list area unit are modified, updated, or deleted. In alternative words, we can say that keys are accustomed to offering identity to the weather within the lists.

Subscribe

Select Categories