react-table/docs/installation.md
Avi Press d0a9b97ed0
Add dependency on Scarf for installation analytics (#2012)
* Adds dev dependency on Scarf, default opt-out. Corresponding installation instructions

* Scarf as default opt in, moved to dependencies

* Update install docs for default opt in analytics

* Remove extra period

* update yarn lock
2020-03-25 14:21:25 -06:00

807 B

Installation

Install React Table as a dependency using npm or yarn

# NPM
$ npm install react-table

# Yarn
$ yarn add react-table

React Table uses 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:

import {
  useTable,
  useGroupBy,
  useFilters,
  useSortBy,
  useExpanded,
  usePagination,
  ...
} from 'react-table'

Once you've installed React Table, continue to Concepts to read more about how to utilize its API