JSFiddle - React, Tailwind, and code Playground

HTML

<!DOCTYPE html>
<html>

  <head>
    <style>
      div.set {
        display: flex;
        flex-direction: row;
      }

      table,
      th,
      td {
        border: 1px solid black;
        border-collapse: collapse;
        font-family: arial;
      }

      th,
      td {
        padding: 0px 10px 0px 0px;
      }

    </style>
  </head>

  <body>
    <div class="set">
      <canvas id="myCanvas" width="400" height="400" style="border:1px solid #000000;"></canvas>
      <table id="myTable" style="margin-left:50px;">
        <tr>
          <th>column</th>
        </tr>
      </table>
    </div>
    <br/><br/>
    <button onclick="addRow()">add row</button>
    <script>
      var row = {};
      var table = document.getElementById("myTable");
      var rowNumber = 1;

      function addRow() {
        row = table.insertRow(rowNumber);
        Cell1 = row.insertCell(0);
        Cell1.innerHTML = "stuff";
        rowNumber++;
      }

    </script>
  </body>

</html>