Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save eugenserbanescu/15b10584a618256c291349b89617dc03 to your computer and use it in GitHub Desktop.
Save eugenserbanescu/15b10584a618256c291349b89617dc03 to your computer and use it in GitHub Desktop.
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