Skip to content

Instantly share code, notes, and snippets.

@StephenDRoberts
Created August 22, 2020 09:48
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 StephenDRoberts/ac0ce519bf4cc5e321d4b71c8fc65e7c to your computer and use it in GitHub Desktop.
Save StephenDRoberts/ac0ce519bf4cc5e321d4b71c8fc65e7c to your computer and use it in GitHub Desktop.
Template JSX table
render() {
return (
<div className="placeholder" id="monthlyList">
<table className="table">
<thead>
<tr>
<th scope="col" className="col-3">Date</th>
<th scope="col" className="col-3">Type</th>
<th scope="col" className="col-3">Retailer</th>
<th scope="col" className="col-3">Value</th>
</tr>
</thead>
<tbody>
{this.renderMonthlyList(this.props.monthData)}
</tbody>
</table>
</div>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment