React | Lists and Keys | Question 4

Last Updated :
Discuss
Comments

How can you render a list of items in React using JSX?

<ul>{items.map(item => <li>{item}</li>)}</ul>

<ul><map>{items}</map></ul>

<ul>{map(item => <li>{item}</li>)}</ul>

<ul>{items}</ul>

Share your thoughts in the comments