JSFiddle - React, Tailwind, and code Playground
by TCHdevlp
HTML
<div>
<table id="maTable">
<thead>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</thead>
<tbody>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
</div>
CSS
#maTable{
background-color:#aaa;
border:1px solid #333;
border-collapse:collapse;
}
#maTable tr:nth-child(odd){
background-color:#fff;
}
#maTable tr:nth-child(even){
background-color:#777;
}