← React Intermediate Questions - Set 3 Q25

What is the purpose of keys in lists in React?

React Intermediate Questions - Set 3

Example

{rows.map(r => <tr key={r.id}><td>{r.name}</td></tr>)}

What to notice

← Back to the question list