What is the significance of keys in ReactJS?

In ReactJS, Keys are actually used for determining unique Virtual DOM Elements with their corresponding data driving the UI. They allow React to recycle all the existing elements in the DOM, and thus optimize the rendering. These keys must be a unique number or string, using which React just reorders the elements instead of re-rendering them. This helps to increase the application’s performance.