react-rendering-lists Flashcards

1
Q

What Array method is commonly used to create a list of React elements?

A

I don’t know

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the best value to use as a “key” prop when rendering lists?

A

Use a string that uniquely identifies it among its siblings. A stable id.. generated by the database.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly