this npm package shows an example that does not work. It seems the package code contains commonjs modules which throws error in browser. Additionally, it seems the package doesn’t export x_spreadsheet, not sure how an import could work without that as in the example.
from the package readme.md
import Spreadsheet from “gridjs-spreadsheet”;
// If you need to override the default options, you can set the override
// const options = {};
// new Spreadsheet(‘#x-spreadsheet-demo’, options);
const s = new Spreadsheet(“#x-spreadsheet-demo”)
.loadData({}) // load data
.change(data => {
// save data to db
});// data validation
s.validate()