Created
March 9, 2018 12:03
-
-
Save eugenserbanescu/15b10584a618256c291349b89617dc03 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 Row = props => { | |
const {issueId, issueLink, qaName, number, voteCount} = props; | |
return ( | |
<tr> | |
<td>${number}</td> | |
<td>${voteCount}</td> | |
<td>${issueId}</td> | |
<td>${qaName}</td> | |
<td> | |
<a href=${issueLink} target="_blank">${issueLink}</a> | |
</td> | |
</tr> | |
); | |
} | |
const Table = props => { | |
return ( | |
<table> | |
{props.list.map((contestObj, i) => <Row key={contestObj.issueId} number={i + 1}...contestObj/>)} | |
</table> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment