Created
October 9, 2019 10:02
-
-
Save croraf/7dbfdf88288eb1024285b6e719bd1572 to your computer and use it in GitHub Desktop.
Compare tables
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
<Table className={classes.table}> | |
<TableHead> | |
<TableRow> | |
<TableCell>Dessert (100g serving)</TableCell> | |
<TableCell align="right">Calories</TableCell> | |
<TableCell align="right">Fat (g)</TableCell> | |
<TableCell align="right">Carbs (g)</TableCell> | |
<TableCell align="right">Protein (g)</TableCell> | |
</TableRow> | |
</TableHead> | |
<TableBody> | |
{rows.map(row => ( | |
<TableRow key={row.name}> | |
<TableCell component="th" scope="row"> | |
{row.name} | |
</TableCell> | |
<TableCell align="right">{row.calories}</TableCell> | |
<TableCell align="right">{row.fat}</TableCell> | |
<TableCell align="right">{row.carbs}</TableCell> | |
<TableCell align="right">{row.protein}</TableCell> | |
</TableRow> | |
))} | |
</TableBody> | |
</Table> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment