You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Right-to-left (RTL) support. We recommend using Firefox as Chrome has a [bug](https://bugs.chromium.org/p/chromium/issues/detail?id=1140374) with frozen columns.
45
+
- Right-to-left (RTL) support. We recommend using Firefox as Chrome has a [bug](https://issues.chromium.org/issues/40653832) with frozen columns.
46
46
47
47
## Links
48
48
@@ -57,14 +57,14 @@
57
57
npm install react-data-grid
58
58
```
59
59
60
-
`react-data-grid` is published as ECMAScript modules for evergreen browsers / bundlers, and CommonJS for server-side rendering / Jest.
60
+
`react-data-grid` is published as ECMAScript modules for evergreen browsers, bundlers, and server-side rendering.
61
61
62
62
## Quick start
63
63
64
64
```jsx
65
65
import'react-data-grid/lib/styles.css';
66
66
67
-
importDataGridfrom'react-data-grid';
67
+
import{ DataGrid }from'react-data-grid';
68
68
69
69
constcolumns= [
70
70
{ key:'id', name:'ID' },
@@ -114,7 +114,7 @@ An optional array of summary rows, usually used to display total values for exam
114
114
A function returning a unique key/identifier per row. `rowKeyGetter` is required for row selection to work.
115
115
116
116
```tsx
117
-
importDataGridfrom'react-data-grid';
117
+
import{ DataGrid }from'react-data-grid';
118
118
119
119
interfaceRow {
120
120
id:number;
@@ -140,7 +140,7 @@ The second parameter is an object with an `indexes` array highlighting which row
140
140
141
141
```tsx
142
142
import { useState } from'react';
143
-
importDataGridfrom'react-data-grid';
143
+
import{ DataGrid }from'react-data-grid';
144
144
145
145
function MyGrid() {
146
146
const [rows, setRows] =useState(initialRows);
@@ -181,7 +181,7 @@ A function called when row selection is changed.
0 commit comments