JSFiddle - React, Tailwind, and code Playground
HTML
<table>
<tr>
<td>1</td>
<td rowspan="2">2</td>
<td>3</td>
<td>4</td>
</tr>
<tr>
<td colspan="2">5</td>
</tr>
</table>
CSS
td{border:1px solid}
td[rowspan]{background-color: rgba(196,255,255, .7)}
td[colspan]{background-color: rgba(255,196,255, .7)}