hatrena-reactdatagrid
v7.0.0-canary.15.6
Published
Excel-like grid component built with React, with editors, keyboard navigation, copy & paste, and the like
Downloads
3
Maintainers
Readme
react-data-grid
Install
npm install react-data-grid
Usage
import DataGrid from 'react-data-grid';
import 'react-data-grid/dist/react-data-grid.css';
const columns = [
{ key: 'id', name: 'ID' },
{ key: 'title', name: 'Title' }
];
const rows = [
{ id: 0, title: 'Example' },
{ id: 1, title: 'Demo' }
];
function App() {
return (
<DataGrid
columns={columns}
rows={rows}
/>
);
}