React Table
react-table
Hooks for building lightweight, fast and extendable datagrids for React
Tables
react
table
react-table
datagrid
Tables
javascript
npm
frontend
open source
ui
Stars
28k
Weekly
1.6M
Open issues
62
Bundle
~25 kB
Installation
npm install react-tableCode example
import { useTable } from "react-table";
const rows = [
{ id: 1, name: "Ada", role: "Engineer" },
{ id: 2, name: "Linus", role: "Maintainer" },
];
export function Example() {
const table = useTable({ data: rows, columns: [{ accessorKey: "name" }, { accessorKey: "role" }] });
return <pre>{JSON.stringify(table, null, 2)}</pre>;
}Pros & cons
Pros
- Actively maintained by tannerlinsley
- 1.6M weekly downloads. Battle tested
- MIT licensed
Considerations
- Adds roughly ~25 kB to your bundle
- Needs client-only rendering in SSR frameworks
- Not supported in React Native
- 62 open issues on GitHub