Problem Statement
Why are keys important when rendering lists in React Native?
Explanation
Keys help React efficiently update lists by identifying which items changed between renders. Without keys, React may re-render items unnecessarily, hurting performance.
Code Solution
SolutionRead Only
data.map(item => <Text key={item.id}>{item.name}</Text>)Practice Sets
This question appears in the following practice sets: