Simple React wrapper for tbranyen/hyperlist, see examples
folder for complete html
and css
example
🚨 hyperlist
is a peer dependency
npm i -S hyperlist hyperlist-react
class MyVirtualList extends React.Component {
render() {
<HyperListReact
height={window.innerHeight}
itemHeight={30}
total={100000}
reverse={false}
generate={this.generate}
/>
}
generate(row) {
return (
<div>{ 'Item ' + row }</div>
)
}
}
Just run npm test
:
- Currently testing only
constructor
- Update
hyperlist
dependency fromfork
toorigin
when tbranyen/hyperlist #38 is merged