Skip to content

Instantly share code, notes, and snippets.

@taylorlee
taylorlee / react-virtualized-usage.md
Last active July 24, 2017 18:22
react-virtualized-usage

this is example code for bvaughn/react-virtualized#147 (comment)

disclaimer: I simplified the code and renamed things, so I might have totally broken it, or omitted crucial css.

class Spreadsheet extends React.Component {
    render () {
        let rowCount    = this.props.rows.length;
        let columnCount = this.props.columns.length;
        let width       = CELL_WIDTH  * columnCount;