This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

go-virtualize
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

go-virtualize

Virtualize big data for React

Install

npm i go-virtualize
yarn add go-virtualize

Usage

import { Virtualize, VirtualizedComponentProps } from "go-virtualize";

function Row({ column, row, children, key }: VirtualizedComponentProps) {
  return (
    <div key={key} className="row">
      {children}
    </div>
  );
}

function Column({ column, row, key }: VirtualizedComponentProps) {
  return (
    <div key={key} className="column">
      {column}, {row}
    </div>
  );
}

function App() {
  return (
    <div className="App">
      <Virtualize
        style={{ width: "100%", height: "100%", backgroundColor: "#ccc" }}
        rows={100000}
        columns={10000}
        row={Row}
        column={Column}
        avgHeight={30}
        avgWidth={200}
      />
    </div>
  );
}

Live

Package Sidebar

Install

npm i go-virtualize

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

23.5 kB

Total Files

15

Last publish

Collaborators

  • wroud