React 19 · JSX patterns

Render a list

Give each item a stable key so React can track it.

{items.map((item) => (
  <li key={item.id}>{item.name}</li>
))}

Official React 19 documentation

More jsx patterns commands

All jsx patterns commands · React 19 cheatsheet

Was this page helpful?