Skip to content

joelbarbosa/virtual-list

Repository files navigation

virtual-list

virtualize data list (In the process of experiment)

NPM JavaScript Style Guide

Usage

import React from 'react'
import { VirtualList } from 'virtual-list'

const totalData = 10000;

const loadData = size => {
  return Array(size)
    .fill()
    .map((i, index) => " lorem ipsum: " + index);
};

export default class App extends React.Component {
  render() {
    const list = loadData(totalData);
    return(
      <VirtualList data={list} />
    );
  }
}

License

MIT © joelbarbosa

Releases

No releases published

Packages

No packages published