Getting started
Installation
Regrid is available on npm and can be installed from the command line via npm or yarn:npm i regridjs --save
yarn add regridjs
Usage
-
Import the package
import Regrid from 'regridjs';
-
Define an array with some data
const data = [{ id: 1, firstName: 'John', lastName: 'Smith' }, ...];
-
Include the component
// some other code <Regrid dataSource={data} columns={[{ key: 'firstName', caption: 'First name' }, { key: 'lastName', caption: 'Last name' }]} /> // some other code