Skip to content

Instantly share code, notes, and snippets.

@rafayepes
Created October 5, 2016 12:15
Show Gist options
  • Save rafayepes/0692d1bb8edcd08f92ac33c488a898d4 to your computer and use it in GitHub Desktop.
Save rafayepes/0692d1bb8edcd08f92ac33c488a898d4 to your computer and use it in GitHub Desktop.
<div className="MyContainerWrapper">
<InfiniteLoader
isRowLoaded={this._isRowLoaded}
loadMoreRows={this._loadMoreRows}
rowCount={list.length}
>
{({ onRowsRendered, registerChild }) => (
<AutoSizer>
{({ width, height }) => (
<List
ref={registerChild}
className="List page-content"
height={height}
onRowsRendered={onRowsRendered}
noRowsRenderer={this._noRowsRenderer}
rowCount={list.length}
rowHeight={this._getRowHeight}
rowRenderer={this._rowRenderer}
scrollToIndex={scrollToIndex}
width={width}
/>
)}
</AutoSizer>
)}
</InfiniteLoader>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment