JSFiddle - React, Tailwind, and code Playground
HTML
<table border="1">
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
<tr>
<td>February</td>
<td>$80</td>
</tr>
</table>
CSS
tr:nth-child(odd) {
background: green;
}
tr:nth-child(even) {
background: red;
}