RC

Rc Table

rc-table

table ui component for react

Tables
react
react-table
table
component
ui
rc-table
Tables
javascript
npm
frontend
Stars
1.4k
Weekly
2.0M
Open issues
185
Bundle
~25 kB

Installation

npm install rc-table

Code example

import { useRcTable } from "rc-table";

const rows = [
  { id: 1, name: "Ada", role: "Engineer" },
  { id: 2, name: "Linus", role: "Maintainer" },
];

export function Example() {
  const table = useRcTable({ data: rows, columns: [{ accessorKey: "name" }, { accessorKey: "role" }] });
  return <pre>{JSON.stringify(table, null, 2)}</pre>;
}

Pros & cons

Pros

  • Actively maintained by benjycui
  • 2.0M weekly downloads. Battle tested
  • First-class TypeScript definitions
  • MIT licensed

Considerations

  • Adds roughly ~25 kB to your bundle
  • Needs client-only rendering in SSR frameworks
  • Not supported in React Native
  • 185 open issues on GitHub

FAQs

Alternatives & similar libraries