mirror of
https://github.com/gosticks/react-table.git
synced 2025-10-16 11:55:36 +00:00
* size-snapshot created? * Added docz for documentation site * Modified .gitignore to get rid of .docz internal stuff * Update all doc links to point to proper paths with docz * Removed .docz folder from Git Co-authored-by: Jason Clark <jason.clark@tcnbroadcasting.com>
39 lines
853 B
Markdown
39 lines
853 B
Markdown
---
|
|
name: Installation
|
|
route: /installation
|
|
---
|
|
|
|
# Installation
|
|
|
|
Install React Table as a dependency using `npm` or `yarn`
|
|
|
|
```bash
|
|
# NPM
|
|
$ npm install react-table
|
|
|
|
# Yarn
|
|
$ yarn add react-table
|
|
```
|
|
|
|
React Table uses [Scarf](https://www.npmjs.com/package/@scarf/scarf) to collect
|
|
anonymized installation analytics. These anlytics help support the maintainers
|
|
of this library. However, if you'd like to opt out, you can do so by setting the
|
|
environment variable `SCARF_ANALYTICS=false` before you install, or by setting
|
|
`scarfSettings.enabled = false` in your project's `package.json`
|
|
|
|
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) to read more about how to utilize its API
|