JSFiddle - React, Tailwind, and code Playground

HTML

<table id="tabla" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td>1.1</td>
        <td>1.2</td>
        <td>1.3</td>
        <td>1.4</td>
    </tr>
        <tr>
        <td>2.1</td>
        <td>2.2</td>
        <td>2.3</td>
        <td>2.4</td>
    </tr>
        <tr>
        <td>3.1</td>
        <td>3.2</td>
        <td>3.3</td>
        <td>3.4</td>
    </tr>
</table>

CSS

tr:nth-child(odd) {
    background-color:red;
}
tr:nth-child(even) {
    background-color:blue;
}