React-rendering-lists Flashcards
1
Q
What Array method is commonly used to create a list of React elements?
A
.map()
2
Q
What is the best value to use as a “key” prop when rendering lists?
A
string value. (anything unique) EXCEPT for the index value (this is the last resort).