Handsontable example

HTML

<script src="https://cdn.jsdelivr.net/npm/handsontable@latest/dist/handsontable.full.min.js"></script>
<link type="text/css" rel="stylesheet" href="https://cdn.jsdelivr.net/npm/handsontable@latest/dist/handsontable.full.min.css" /> 
<script src="https://handsontable.com/docs/14.3/scripts/fixer.js"></script>

<div id="example-data-grid" class="hot "></div>

Babel + JSX

import Handsontable from 'handsontable';
import 'handsontable/dist/handsontable.full.min.css';

const dataa = Handsontable.helper.createSpreadsheetData(10, 50)

const container = document.querySelector('#example-data-grid');
const hot = new Handsontable(container, {
  data: dataa,
  colHeaders: ['Longer header name'],
  rowHeaders: true,
  licenseKey: 'non-commercial-and-evaluation',
  //viewportColumnRenderingOffset: 50
});