Question: why are keys important in react?
Answer: Keys help React identify which items have changed, are added, or are removed. Keys should be given to the elements inside the array to give the elements a stable identity: ... js is to understand the key property you're expected to pass to a component when it's part of an array of children.