fixed-lazy-list
v1.0.3
Published
Simple wrapper around `react-window-infinite-loader` and `react-window`'s `FixedSizeList`
Downloads
3
Readme
Fixed Lazy List
Simple wrapper around
react-window-infinite-loader
andreact-window
'sFixedSizeList
Usage
async function load(idx: number) {
await delay(1)
return `Fake item ${idx}`
}
return (
<LazyList numItems={42} load={load}
fixedProps={{ height: 512, itemSize: 64, width: '100%' }}
Item={({ style, index, item }) => (
<div style={style}>
<p>{item}</p>
</div>
)}
/>
)