x-virtual
v0.0.4
Published
a simple virtual list by react application. build your own virtual list
Downloads
2
Readme
x-virtual
a simple virtual list by react application. build your own virtual list
Installation
npm install x-virtual
Usage
<XVirtual
data={Array.from({ length: 2000 }, (_, i) => `andy-${i}`)}
itemHeight={40}
windowHeight={window.innerHeight / 2}
ref={eleRef}
/>
References building a virtualized list from scratch.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.