Browse by type

react-virtualized is a set of React components for efficiently rendering large lists and tabular data.
[!TIP] If you're considering adding
react-virtualizedto a project, take a look atreact-windowas a possible lighter-weight alternative.
If you like this project there are several ways to support it:
The following wonderful companies and individuals have sponsored react-virtualized:
Begin by installing the library from NPM:
npm install react-virtualized
Most of react-virtualized's styles are functional (e.g. position, size) and are applied directly to DOM elements.
The Table component also ships with a few optional presentational styles; to use them, import the CSS file once (e.g. while bootstrapping your application):
import "react-virtualized/styles.css";
The package is marked as side-effect free (other than its CSS), so bundlers will tree-shake any components you don't use.
TypeScript definitions are included within the published dist folder.
Types are exported for each component's props (e.g. ListProps, GridProps, TableProps) along with the parameters passed to renderers (e.g. RowRendererParams, CellRendererParams, TableCellProps).
By default all react-virtualized components are wrapped in memo to avoid re-rendering unless props or state has changed.
This occasionally confuses users when a collection's data changes (eg ['a','b','c'] => ['d','e','f']) but props do not (eg array.length).
The solution to this is to let react-virtualized know that something external has changed. This can be done a couple of different ways.
This shallow comparison will detect changes to any props, even ones a component doesn't use.
This means you can also pass through additional properties that affect cell rendering to ensure changes are detected.
For example, if you're using List to render a list of items that may be re-sorted after initial render- react-virtualized would not normally detect the sort operation because none of the properties it deals with change.
However you can pass through the additional sort property to trigger a re-render.
For example:
<List {...listProps} sortBy={sortBy} />
Grid components can be forcefully re-rendered by calling forceUpdate on their ref.
For Table and List, you'll need to call forceUpdateGrid to ensure that the inner Grid is also updated. For MultiGrid, you'll need to call forceUpdateGrids to ensure that the inner Grids are updated.
Documentation and live examples for every component are availab
browse all types & interfaces →
$ claude mcp add react-virtualized \
-- python -m otcore.mcp_server <graph>