RE

React Virtualized

react-virtualized

React components for efficiently rendering large, scrollable lists and tabular data

Tables
react
reactjs
react-component
virtual
list
scrolling
infinite
virtualized
table
fixed
Stars
27k
Weekly
1.6M
Open issues
0
Bundle
~25 kB

Installation

npm install react-virtualized

Code example

import { useVirtualized } from "react-virtualized";

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

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

Pros & cons

Pros

  • Actively maintained by Brian Vaughn
  • 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
  • 0 open issues on GitHub

FAQs

Alternatives & similar libraries