Skip to content

Instantly share code, notes, and snippets.

@johnnykoo84
Created April 17, 2019 14:55
Show Gist options
  • Save johnnykoo84/76d9d2486770d4642ae0cae6832e5e40 to your computer and use it in GitHub Desktop.
Save johnnykoo84/76d9d2486770d4642ae0cae6832e5e40 to your computer and use it in GitHub Desktop.
const Articles = props => {
const { articles } = props;
return (
<div className="list-group">
{articles.map(article => (
<div
className="list-group-item list-group-item-action"
key={article.id}
>
<small>article #{article.id}</small>
<div className="mb-1">{article.title}</div>
</div>
))}
</div>
);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment