What is the significance of keys in React?