Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Hero loop with JSX map operator
<ul class="heroes">
{this.heroes.map((hero) =>
<li>
<span class="badge">{hero.id}</span> {hero.name}
</li>
)}
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.