JSFiddle - React, Tailwind, and code Playground

by amindunited

HTML

<div class="container">
   <div class="section">
      <table>
        <thead>
          <tr>
            <th>index</th>
            <th>name</th>
          </tr>
        </thead
        <tbody>         
        <tr>
            <td>1</td>
            <td>One</td>
          </tr>
          <tr>
            <td>2</td>
            <td>Two</td>
          </tr>
          <tr>
            <td>3</td>
            <td>Three</td>
          </tr>
          <tr>
            <td>4</td>
            <td>Four</td>
          </tr>
          <tr>
            <td>5</td>
            <td>five</td>
          </tr>
          <tr>
            <td>6</td>
            <td>Six</td>
          </tr>
          <tr>
            <td>7</td>
            <td>Se7en</td>
          </tr>
          <tr>
            <td>8</td>
            <td>Eight</td>
          </tr>
          <tr>
            <td>1</td>
            <td>One</td>
          </tr>
          <tr>
            <td>2</td>
            <td>Two</td>
          </tr>
          <tr>
            <td>3</td>
            <td>Three</td>
          </tr>
          <tr>
            <td>4</td>
            <td>Four</td>
          </tr>
          <tr>
            <td>5</td>
            <td>five</td>
          </tr>
          <tr>
            <td>6</td>
            <td>Six</td>
          </tr>
          <tr>
            <td>7</td>
            <td>Se7en</td>
          </tr>
          <tr>
            <td>8</td>
            <td>Eight</td>
          </tr>
        </tbody>
      </table>
   </div>
</div>

CSS

html, body {
  background-color: rgba(127, 127, 127, 0.3);
}

JavaScript

const rows = [

];