17 lines
511 B
JavaScript
17 lines
511 B
JavaScript
import {Grid, TableView, TableHeaderRow} from '@devexpress/dx-react-grid-material-ui'/* or '@devexpress/dx-react-grid-material-ui' */;
|
|
|
|
const App = () => (
|
|
<Grid
|
|
rows={[
|
|
{ id: 0, product: 'DevExtreme', owner: 'DevExpress' },
|
|
{ id: 1, product: 'DevExtreme Reactive', owner: 'DevExpress' },
|
|
]}
|
|
columns={[
|
|
{ name: 'id', title: 'ID' },
|
|
{ name: 'product', title: 'Product' },
|
|
{ name: 'owner', title: 'Owner' },
|
|
]}>
|
|
<TableView />
|
|
<TableHeaderRow />
|
|
</Grid>
|
|
); |