Complete List Rendering with map
Fill in the Blank Easy
Question
Fill in the blank to transform each item into a list element.
Code
{items._____(item => (
<li key={item.id}>{item.name}</li>
))}
Hint
Which array method transforms each element into something new?
Explanation
The .map() method transforms each item in the array into a JSX element. It's the standard way to render lists in React. Each element needs a unique key prop.
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.