← React Fundamentals

Lesson 3 of 3 · 9 min

Rendering lists

map turns arrays into UI: items.map(item => <li key={item.id}>{item.name}</li>).

Keys help React track which items changed, moved or were removed.

Practice

Render an array of three hobbies as a list, giving each a stable key.

Quiz

+50 pts
1. Arrays become UI with…
2. Keys help React…

Optional resources

Your lesson toolkit

No purchase or partner signup is required to complete this course or earn quiz points.

These are official product links, not active affiliate links. Learnly does not currently earn a commission from them.

React documentation

Follow the official component and state tutorials.

Free documentation.

Explore tool

CodeSandbox

Prototype React components in the browser.

Free tier available; paid plans optional.

Explore tool