🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

go-virtualize

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

go-virtualize

Virtualize big data for React

alpha
latest
Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
5
66.67%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

react

FAQs

Package last updated on 05 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts