Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.
/ hyperlist-react Public archive

⚠️ Deprecated ! Simple React wrapper component for HyperList

Notifications You must be signed in to change notification settings

thcolin/hyperlist-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HyperListReact

Simple React wrapper for tbranyen/hyperlist, see examples folder for complete html and css example

Deprecated

⚠️ Warning, this library is not longer maintained, see thcolin/react-virtualist for alternative

Installation

🚨 hyperlist is a peer dependency

npm i -S hyperlist hyperlist-react

Usage

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>
    )
  }
}

Tests

Just run npm test :

  • Currently testing only constructor

TODO

About

⚠️ Deprecated ! Simple React wrapper component for HyperList

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published