Go to file
Tanner Linsley ddfa0fa227 Death of the path, fix some hooks, fix selectedRows
- Fixed an issue where dependency hooks were not being reduced properly, thus the table would rerender unnecessarily
- Renamed `toggleRowSelectedAll` to `toggleAllRowsSelected`. Duh...
- Added an `indeterminate` boolean prop to the default props for row selection toggle prop getters
- Renamed `selectedRowPaths` to `selectedRowIds`, which also no longer contains paths, but row IDs
- Grouped or nested row selection actions and state are now derived, instead of tracked in state.
- Rows now have a new property called `id`, which existed before and was derived from the `getRowId` option
- Rows now also have an `isSomeSelected` prop when using the `useRowSelect` hook, which denotes that at least one subRow is selected (if applicable)
- Rows' `path` property has been deprecated in favor of `id`
- Expanded state is now tracked with row IDs instead of paths
- RowState is now tracked with row IDs instead of paths
- `toggleExpandedByPath` has been renamed to `toggleExpandedById`, and thus accepts a row ID now, instead of a row path
2019-12-10 23:04:34 -07:00
.github setup size-plugin-bot (#1677) 2019-12-02 17:06:31 -07:00
configs/tests Fix sandbox loop protection 2019-10-03 08:38:33 -06:00
docs Death of the path, fix some hooks, fix selectedRows 2019-12-10 23:04:34 -07:00
examples Death of the path, fix some hooks, fix selectedRows 2019-12-10 23:04:34 -07:00
media fix: better naming, fix header regen, getSubRows, getRowPathID 2019-08-26 09:27:07 -06:00
src Death of the path, fix some hooks, fix selectedRows 2019-12-10 23:04:34 -07:00
www Create _redirects 2019-02-11 13:19:27 -07:00
.babelrc fix(usegroupby): fix useGroupBy, add grouping example and fix some tests 2019-07-30 09:56:44 -06:00
.eslintrc Add prettier format 2019-07-29 11:33:47 -06:00
.gitattributes Fixed text mismatch when doing SSR (#957) 2018-05-24 16:27:57 -06:00
.gitignore Remove package-lock.json (#1579) 2019-10-09 15:19:04 -06:00
.huskyrc.js Test 2019-11-05 14:04:23 -07:00
.npmrc Remove package-lock.json (#1579) 2019-10-09 15:19:04 -06:00
.size-snapshot.json Death of the path, fix some hooks, fix selectedRows 2019-12-10 23:04:34 -07:00
.travis.yml Disable workflows and use travis for now 2019-11-20 09:46:05 -07:00
CHANGELOG.md Death of the path, fix some hooks, fix selectedRows 2019-12-10 23:04:34 -07:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md (#1452) 2019-08-15 15:42:50 -06:00
commitlint.config.js chore(commitlint): add deps, config, and git hook (#1419) 2019-07-29 23:45:46 -06:00
CONTRIBUTING.md docs: docs 2019-08-15 15:44:47 -06:00
jest.config.js Add prettier format 2019-07-29 11:33:47 -06:00
LICENSE Revert "Init" 2017-05-11 19:03:31 -06:00
lint-staged.config.js Add prettier format 2019-07-29 11:33:47 -06:00
package.json v7.0.0-rc.8 2019-12-10 16:35:19 -07:00
prettier.config.js Fix hook defaults 2019-07-29 11:14:41 -06:00
README.md Update README.md 2019-12-09 10:51:07 -07:00
rollup.config.js setup size-plugin-bot (#1677) 2019-12-02 17:06:31 -07:00
sizes-cjs.json 🇰🇪 🍐 update sizes-cjs.json 👍 2019-12-10 19:44:08 +00:00
sizes-es.json 🧑🏻‍🤝‍🧑🏻 🔔 update sizes-es.json 👍 2019-12-10 19:44:09 +00:00
TYPESCRIPT.md v7.0.0-beta.24 2019-12-03 09:40:53 -07:00
yarn.lock Remove typescript dep 2019-12-03 12:54:35 -07:00

React Table Header

Hooks for building lightweight, fast and extendable datagrids for React

#TanStack

Travis CI Bundlephobia NPM Package Join the community on Spectrum GitHub Stars Twitter Followers

Enjoy this library? Try them all! React Query, React Form, React Charts

Become a Sponsor

Features

  • Lightweight (5kb - 12kb+ depending on features used and tree-shaking)
  • Headless (100% customizable, Bring-your-own-UI)
  • Auto out of the box, fully controllable API
  • Sorting (Multi and Stable)
  • Filters
  • Pivoting & Aggregation
  • Row Selection
  • Row Expansion
  • Column Ordering
  • Animatable
  • Virtualizable
  • Resizable
  • Server-side/controlled data/state
  • Extensible via hook-based plugin system

Documentation

  • Installation - Walk through how to install React Table
  • Concepts - Read how React Table works and how you can use it better
  • Examples - Experience and learn from some examples and guides of how to use React Table and implement common patterns
  • API - Get to know React Table's API
  • FAQ - Learn how to use React Table for specific challenges and tasks
  • Previous Versions
  • Contributing - Become familiar with how to contribute back to React Table
  • Code of Conduct - Be a good React Table citizen by following these repository rules

Sponsors

This library is being built and maintained by me, @tannerlinsley and I am always in need of more support to keep this project afloat. If you would like to get additional support, add your logo or name on this README, or simply just contribute to my open source Sponsorship goal, visit my Github Sponsors page!

Become a Sponsor!
Become a Sponsor!
Become a Sponsor!
Become a Sponsor!
Become a Supporter!
  • Sortmy.games
  • Hugo Meissner
  • Benoit Leger-Derville
  • Thomas Funk
  • Dan Houle
  • David Pickut
  • Jordan Soltman
  • Robert Tajnšek
  • Pekka Tapani
  • Eric Lanehart (@pushred)
Become a Fan!

Become a Sponsor

Previous Versions

Version 6

v6 is a great library and while it is still available to install and use, I am no longer offering any long-term support for it. If you intend to keep using v6, I recommend maintaining your own fork of the library and keeping it up to date for your version of React.

Where are the docs for the older v6 version?

Please visit the v6 branch

I want to migrate from v6 to v7. How do I do that?

The differences between the 2 versions are incredibly massive. Unfortunately, I cannot write a one-to-one upgrade guide for any of v6's API, simply because much of it is irrelevant with v7's headless approach. The best approach for migrating to v7 is to learn its API by reading the documentation and then following some of the examples to begin building your own table component.

In case you would need to have both v6 and v7 in one app during the migration process (large codebase, complex use cases), you can either (1) fork and maintain your own local version of React Table v6 or (2) install the react-table-6 alias package for use alongside the react-table package.