Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Row from './Row';
- ...
- render () {
- return (
- <AutoSizer disableHeight>
- {({ width })} => (
- <List
- height={200}
- width={width}
- rowCount={this.props.list.size}
- rowRenderer={this.rowRenderer}
- rowHeight={24}
- />
- )}
- </AutoSizer>
- );
- }
- rowRenderer = ({ key, style, index, parent }) => {
- const row = this.props.list.get(index);
- return (
- <Row
- row={row}
- style={style}
- rowIndex={index}
- parent={parent}
- columnIndex={0}
- />
- );
- }
- .ReactVirtualized__Grid.ReactVirtualized__List {
- will-change: unset !important;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement