Question · React Native course · Module 2: Lists and styles
keyExtractor in FlatList
What is the keyExtractor property used for in FlatList?
Answer options
- To sort list items
- To filter items
- To generate unique keys for each item
- To group items into sections
Show the answer
Correct answer:
- To generate unique keys for each item