Created
April 17, 2019 14:55
-
-
Save johnnykoo84/76d9d2486770d4642ae0cae6832e5e40 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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