# @clinyong/react-scroll-list

> A react component to render large lists. Inspired by [react-virtualized](https://github.com/bvaughn/react-virtualized), but much simpler.

Latest version **1.0.2** (published 2018-07-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install @clinyong/react-scroll-list
pnpm add @clinyong/react-scroll-list
yarn add @clinyong/react-scroll-list
bun add @clinyong/react-scroll-list
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2018-07-15 |
| First published | 2018-07-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | clinyong |

## Links

- npm: https://www.npmjs.com/package/@clinyong/react-scroll-list
- npm.io page: https://npm.io/package/@clinyong/react-scroll-list

## Recent versions

- 1.0.2 (latest) — 2018-07-15
- 1.0.1 — 2018-07-15

## README

A react component to render large lists. Inspired by [react-virtualized](https://github.com/bvaughn/react-virtualized), but much simpler.

## Install

```
$ npm install @clinyong/react-scroll-list --save
```

## Usage

```jsx
import { ScrollList } from "@clinyong/react-scroll-list";

class LargeList extends React.Component {
  constructor() {
    this.state = {
      list: [1, 2, 3]
    };
  }

  rowRenderer = ({ index, style }) => {
    const item = this.state.list[index];

    return (
      <li key={item} style={style}>
        {item}
      </li>
    );
  };

  render() {
    return (
      <ul>
        <ScrollList
          height={250}
          rowHeight={32}
          total={this.state.list.length}
          rowRenderer={this.rowRenderer}
        />
      </ul>
    );
  }
}
```

---
_Source: https://npm.io/package/@clinyong/react-scroll-list · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
