JSFiddle - React, Tailwind, and code Playground

HTML

<div>
  <div id="example1" class="hot handsontable htRowHeaders htColumnHeaders"></div>
</div>

CSS

body .handsontable .htDimmed{
  text-align: center;
  vertical-align: middle;
}
</style>

<script src="https://cdn.jsdelivr.net/npm/handsontable@7.1.1/dist/handsontable.full.min.js"></script>
<link type="text/css" rel="stylesheet" href="https://cdn.jsdelivr.net/npm/handsontable@7.1.1/dist/handsontable.full.min.css">

JavaScript

var generateDataObj = function(rows, columns, additionalRows) {
    if (additionalRows === void 0) {
      additionalRows = true;
    }
  
    var data = [];
    var number = 0;
  
    if (!rows) {
      rows = 3;
    }
    if (!columns) {
      columns = 7;
    }
  
    for (var i = 0; i < rows; i++) {
      data[i] = [];
      for (var j = 0; j < columns; j++) {
        data[i][j] = number++;
      }
    }
  
    if (additionalRows) {
      for (i = 0; i < 2; i++) {
        data.push([]);
      }
    }
  
    return data;
  };
  var example1 = document.getElementById('example1');
  
  var hot = new Handsontable(example1, {
    data: generateDataObj(),
    colHeaders: true,
    rowHeaders: true,
    className: "htCenter htMiddle",
    columnSummary: [
      {
        destinationRow: 4,
        destinationColumn: 1,
        type: 'min'
      },
      {
        destinationRow: 0,
        destinationColumn: 3,
        reversedRowCoords: true,
        type: 'max'
      },
      {
        destinationRow: 4,
        destinationColumn: 5,
        type: 'sum',
        forceNumeric: true
      }  
    ]
  });