AG

Ag Grid React

ag-grid-react

AG Grid React Component

Tables
react-component
grid
data
table
react
ag-grid-react
Tables
javascript
npm
frontend
Stars
16k
Weekly
2.1M
Open issues
134
Bundle
~25 kB

Installation

npm install ag-grid-react

Code example

import { useAgGridReact } from "ag-grid-react";

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

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

Pros & cons

Pros

  • Actively maintained by Niall Crosby
  • 2.1M 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
  • 134 open issues on GitHub

FAQs

Alternatives & similar libraries