7.0.0-canary.22.7 • Published 2 years ago
react-data-grid-temp v7.0.0-canary.22.7
react-data-grid
Install
npm install react-data-grid
react-data-grid is published as ES2020 modules, you'll probably want to transpile those down to scripts for the browsers you target using Babel and browserslist.
last 2 chrome versions
last 2 edge versions
last 2 firefox versions
last 2 safari versions
See documentation
{
"presets": [
["@babel/env", {
"bugfixes": true,
"shippedProposals": true,
"corejs": 3,
"useBuiltIns": "entry"
}]
]
}
See documentation
- It's important that the configuration filename be
babel.config.*
instead of.babelrc.*
, otherwise Babel might not transpile modules undernode_modules
. - We recommend polyfilling modern JS features with core-js by adding the following snippet at the top of your bundle's entry file:
import 'core-js/stable';
- Babel's
env
preset, if configured correctly, will transform this import so only the necessary polyfills are included in your bundle.
- Babel's
- Polyfilling the
ResizeObserver
API is required for older browsers. - Optional: we also recommend using the
babel-plugin-optimize-clsx
plugin.
{
// ...
module: {
rules: {
test: /\.js$/,
exclude: /node_modules[/\\](?!react-data-grid[/\\]lib)/,
use: 'babel-loader'
}
}
}
See documentation
{
// ...
plugins: {
babel({
include: [
'./src/**/*',
'./node_modules/react-data-grid/lib/**/*'
]
})
}
}
See documentation
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}
/>
);
}
Documentation
7.0.0-canary.22.6
2 years ago
7.0.0-canary.22.7
2 years ago
7.0.0-canary.22.5
3 years ago
7.0.0-canary.22.4
3 years ago
7.0.0-canary.22.2
4 years ago
7.0.0-canary.22.3
4 years ago
7.0.0-canary.22.1
4 years ago
7.0.0-canary.22.0
4 years ago
7.0.0-canary.22
4 years ago
7.0.0-canary.21.1
4 years ago
7.0.0-canary.21
4 years ago
7.0.0-canary.20
4 years ago
7.0.0-canary.18.2
4 years ago
7.0.0-canary.18.1
4 years ago
7.0.0-canary.18.0
4 years ago
7.0.0-canary.17.7
4 years ago
7.0.0-canary.17.6
4 years ago
7.0.0-canary.17.5
4 years ago
7.0.0-canary.17.4
4 years ago
7.0.0-canary.17.3
4 years ago
7.0.0-canary.17.2
4 years ago
7.0.0-canary.18
4 years ago
7.0.0-canary.17.1
4 years ago
7.0.0-canary.17
4 years ago