react-virtualized 0,15,0,17,1,10,0,4 circleci karma npm

React components for efficiently rendering large lists and tabular data

React virtualized

NPM version NPM license NPM total downloads NPM monthly downloads Circle CI badge Codecov badge Slack chat OpenCollective OpenCollective

React components for efficiently rendering large lists and tabular data. Check out the demo for some examples. Join the official Slack chat at


The following wonderful companies have sponsored react-virtualized:

Learn more about becoming a sponsor!

Getting started

Install react-virtualized using npm.

npm install react-virtualized --save

ES6, CommonJS, and UMD builds are available with each distribution. For example:

// Most of react-virtualized's styles are functional (eg position, size).
// Functional styles are applied directly to DOM elements.
// The Table component ships with a few presentational styles as well.
// They are optional, but if you want them you will need to also import the CSS file.
// This only needs to be done once; probably during your application's bootstrapping process.
import 'react-virtualized/styles.css'

// You can import any component you want as a named export from 'react-virtualized', eg
import { Column, Table } from 'react-virtualized'

// But if you only use a few react-virtualized components,
// And you're concerned about increasing your application's bundle size,
// You can directly import only the components you need, like so:
import AutoSizer from 'react-virtualized/dist/commonjs/AutoSizer'
import List from 'react-virtualized/dist/commonjs/List'

You can also use a global-friendly UMD build:

<link rel="stylesheet" href="path-to-react-virtualized/styles.css">
<script src="path-to-react-virtualized/dist/umd/react-virtualized.js"></script>

Now you’re ready to start using the components. You can learn more about which components react-virtualized has to offer below.


React Virtualized has very few dependencies and most are managed by NPM automatically. However the following peer dependencies must be specified by your project in order to avoid version conflicts: react, react-dom. NPM will not automatically install these for you but it will show you a warning message with instructions on how to install them.

Pure Components

By default all react-virtualized components use shallowCompare to avoid re-rendering unless props or state has changed. This ocassionally 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.

Pass-thru props

The shallowCompare method will detect changes to any props, even if they aren’t declared as propTypes. 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:

Public methods

Grid and Collection components can be forcefully re-rendered using forceUpdate. For Table and List, you’ll need to call forceUpdateGrid to ensure that the inner Grid is also updated.


API documentation available here.

There are also a couple of how-to guides: * Customizing classes and styles * Displaying items in reverse order * Using AutoSizer * Creating an infinite-loading list * Natural sort Table


Examples for each component can be seen in the documentation.

Here are some online demos of each component:

And here are some “recipe” type demos: * Collapsable tree view * Full-page grid (spreadsheet) * Dynamic cell measuring * Cell hover effects

Supported Browsers

react-virtualized aims to support all evergreen browsers and recent mobile browsers for iOS and Android. IE 9+ is also supported (although IE 9 will require some user-defined, custom CSS since flexbox layout is not supported).

If you find a browser-specific problem, please report it along with a repro case. The easiest way to do this is probably by forking this Plunker.


Here are some great components built on top of react-virtualized: * react-infinite-calendar: Infinite scrolling date-picker with localization, themes, keyboard support, and more * react-sortable-hoc: Higher-order components to turn any list into an animated, touch-friendly, sortable list * react-sortable-tree: Drag-and-drop sortable representation of hierarchical data * react-virtualized-checkbox: Checkbox group component with virtualization for large number of options * react-virtualized-select: Drop-down menu for React with windowing to support large numbers of options.


Use GitHub issues for requests.

I actively welcome pull requests; learn how to contribute.


Changes are tracked in the changelog.


react-virtualized is available under the MIT License.

Top Contributors

bvaughn cesarandreu nicholasrq MikeMcElroy olslash mwilliamson crzrcn edulan guigrpa oyeanuj igorbt aduth dzannotti coluccini IanVS jquense luqmaan piamancini ryanseddon drifkin DrewML andreypopp raizyr chrisvasz khankuan ahutchings eligolding FelixWeis guykr-stratoscale jakeboone02


package version
dev autoprefixer ^6.2.3
babel-cli ^6.24.1
babel-core ^6.25.0
babel-eslint ^7.2.3
babel-jest ^20.0.3
babel-loader 6
babel-plugin-__coverage__ ^11.0.0
babel-plugin-flow-react-proptypes ^3.4.3
babel-plugin-react-transform ^2.0.0
babel-plugin-transform-react-inline-elements ^6.22.0
babel-plugin-transform-react-remove-prop-types ^0.4.6
babel-plugin-transform-runtime ^6.23.0
babel-polyfill ^6.23.0
babel-preset-es2015 ^6.24.1
babel-preset-es2015-rollup 3.0.0
babel-preset-react ^6.24.1
babel-preset-stage-1 ^6.24.1
bluebird ^3.0.5
codecov ^2.2.0
codemirror ^5.18.0
cross-env ^5.0.1
css-loader ^0.28.4
eslint ^4.2.0
eslint-config-prettier ^2.3.0
eslint-plugin-flowtype ^2.35.0
eslint-plugin-prettier ^2.1.2
eslint-plugin-react ^7.1.0
express ^4.13.3
extract-text-webpack-plugin ^3.0.0
file-loader ^0.11.2
flow-bin ^0.50.0
fs-extra ^4.0.0
gh-pages ^1.0.0
html-webpack-plugin ^2.16.1
husky ^0.14.3
immutable ^3.7.5
jest ^18.1.0
lint-staged ^4.0.2
postcss ^5.0.14
postcss-cli ^2.3.3
postcss-loader ^0.9.1
pre-commit ^1.2.2
prettier ^1.5.3
raf ^3.3.0
react ^16.0.0-beta.1
react-codemirror ^1.0.0
react-dom ^16.0.0-beta.1
react-router ^4.1.1
react-router-dom ^4.1.1
react-transform-catch-errors ^1.0.2
react-transform-hmr ^1.0.2
redbox-react ^1.4.3
rimraf ^2.4.3
style-loader ^0.13.0
watch ^1.0.2
webpack ^1.9.6
webpack-dashboard ^0.4.0
webpack-dev-server ^1.14.0
peer react ^15.3.0 || ^16.0.0-alpha
react-dom ^15.3.0 || ^16.0.0-alpha
babel-runtime ^6.23.0
classnames ^2.2.3
dom-helpers ^2.4.0 || ^3.0.0
loose-envify ^1.3.0
prop-types ^15.5.4


-   8.0.11 zip tar
-   8.0.10 zip tar
-   8.0.9 zip tar
-   8.0.8 zip tar
-   8.0.7 zip tar
-   8.0.5 zip tar
-   8.0.4 zip tar
-   8.0.3 zip tar
-   8.0.2 zip tar
-   8.0.1 zip tar
-   8.0.0 zip tar
-   7.24.3 zip tar
-   7.24.2 zip tar
-   7.24.1 zip tar
-   7.24.0 zip tar
-   7.23.0 zip tar
-   7.22.3 zip tar
-   7.22.2 zip tar
-   7.22.1 zip tar
-   7.22.0 zip tar
-   7.21.1 zip tar
-   7.21.0 zip tar
-   7.20.0 zip tar
-   7.19.4 zip tar
-   7.19.3 zip tar
-   7.19.2 zip tar
-   7.19.1 zip tar
-   7.19.0 zip tar
-   7.18.1 zip tar
-   7.18.0 zip tar