Skip to content

Instantly share code, notes, and snippets.

@nicholasess
Created September 21, 2018 14:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicholasess/88244bcbd3a37133b7bd4711c4d70b9a to your computer and use it in GitHub Desktop.
Save nicholasess/88244bcbd3a37133b7bd4711c4d70b9a to your computer and use it in GitHub Desktop.
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