Find: Missing Key Prop
Find the Mistake Easy
Question
What is wrong with this list rendering?
Code
{items.map(item => (
<li>{item.name}</li>
))}
Hint
React requires a special prop on list items.
Explanation
The list items are missing the key prop. React requires a unique key on each list item to efficiently track and update them. The fix is: <li key={item.id}>{item.name}</li>.
Related Resources
Related Lessons
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.