Now that we have installed the library, let's write a simple example.
Grid class to create a new instance:
Grid.js is available as
gridjs in the global scope (e.g.
And then instantiate
gridjs.Grid class in your
You can import
gridjs in your application using:
Here is an example of using Grid.js in a React app (without the
Above example is just to demonstrate how to import and initiate Grid.js.
Please use the
gridjs-react component instead. See React integration.