Created
September 21, 2018 14:55
-
-
Save nicholasess/88244bcbd3a37133b7bd4711c4d70b9a 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
import React from 'react' | |
import PropTypes from 'prop-types' | |
import './ListRepos.css' | |
const ListRepos = ({ repos }) => { | |
return ( | |
<div> | |
{repos.map(repo => ( | |
<div key={repo.id}> | |
<div className="title">{repo.full_name}</div> | |
<div className="sub-title">{repo.language}</div> | |
</div> | |
))} | |
</div> | |
) | |
} | |
ListRepos.propTypes = { | |
repos: PropTypes.array.isRequired | |
} | |
export default ListRepos |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment