Skip to content

Instantly share code, notes, and snippets.

@ericelliott
Created August 26, 2020 02:17
Show Gist options
  • Save ericelliott/1b70686bba13babb822a812eb58984b4 to your computer and use it in GitHub Desktop.
Save ericelliott/1b70686bba13babb822a812eb58984b4 to your computer and use it in GitHub Desktop.
JSX Example
const ItemList = ({ items }) => (
<ul>
{items.map((item) => (
<li key={item.id}>
<div>{item.name}</div>
</li>
))}
</ul>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment