react-rendering-lists Flashcards
1
Q
What Array method is commonly used to create a list of React elements?
A
map() method
2
Q
What is the best value to use as a “key” prop when rendering lists?
A
Use a string that uniquely identifies a list item among its siblings; most often use id’s from your data as keys