reactgrid
A React component for building spreadsheet-like grids.
1. Install ReactGrid from npm repository
Before run you need to have globally installed:
- "react": "^16.8.6"
- "react-dom": "^16.8.6"
2. Import ReactGrid component
3. Import css styles
Import file from node_modules
directory. This file is necessary to correctly displaying.
4. Create a cell matrix
Time to define our data. It will be stored in React Hook.
useState
hook will be initialized with object that contains two keys - columns
and rows
.
Both of them must be valid ReactGrid objects: Columns
Rows
.