mirror of
https://github.com/gosticks/react-table.git
synced 2025-10-16 11:55:36 +00:00
30 lines
553 B
Markdown
30 lines
553 B
Markdown
# Installation
|
|
|
|
Install the React Table v7 Alpha as a dependency using `npm` or `yarn`
|
|
|
|
```bash
|
|
# NPM
|
|
$ npm install react-table@next
|
|
|
|
# Yarn
|
|
$ yarn add react-table@next
|
|
```
|
|
|
|
> NOTE: `@next` is only required temporarily while work on the alpha and beta versions are still shifting.
|
|
|
|
To import React Table:
|
|
|
|
```js
|
|
import {
|
|
useTable,
|
|
useGroupBy,
|
|
useFilters,
|
|
useSortBy,
|
|
useExpanded,
|
|
usePagination,
|
|
...
|
|
} from 'react-table'
|
|
```
|
|
|
|
Once you've installed React Table, continue to [Concepts](./concepts.md) to read more about how to utilize its API
|