Problem Statement
Why is providing a keyExtractor important in FlatList?
Explanation
React uses keys to detect which items are added, removed, or moved.
Providing a unique key improves rendering speed and ensures smooth updates to the list.
Code Solution
SolutionRead Only
keyExtractor={(item) => item.id.toString()}Practice Sets
This question appears in the following practice sets: