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

Unique Virtual DOM Elements along with their related data driving the UI are identified by keys. By recycling all of the already present items in the DOM, they aid React in rendering optimization. These keys, which React uses to simply reorder the elements rather than re-rendering them, must be a distinct number or string. Consequently, the performance of the application improves as a result.

Recent Doubts

Close [x]