JSFiddle - React, Tailwind, and code Playground

HTML

<table id="tab" class="table" align="center" border="1">
                <thead>
                  <tr id="header">
                    <th><input type="checkbox"></th>
                    <th>Name</th>
                    <th>Age</th>
                    <th>Gender</th>
                    <th>City</th>
                    <th>Surname</th>
                  </tr>
                </thead>
                <tbody class="trclass">
                  <tr>
                    <td><input type="checkbox" aria-label="..."></td>
                    <td>Ronak</td>
                    <td>19</td>
                    <td>Male</td>
                    <td>Goa</td>
                    <td>Kesha</td>
                  </tr>
                  </tbody>
                  </table>