# react-clusterize

> A Clusterize.js component for React

Latest version **0.2.2** (published 2017-10-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-clusterize
pnpm add react-clusterize
yarn add react-clusterize
bun add react-clusterize
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.2 |
| Published | 2017-10-06 |
| First published | 2017-03-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 14 |
| Author | Cheton Wu |
| Maintainers | cheton |
| Keywords | cluster, clusterize, list, react, react-clusterize, scroll, table |

## Links

- npm: https://www.npmjs.com/package/react-clusterize
- Repository: https://github.com/cheton/react-clusterize
- Issues: https://github.com/cheton/react-clusterize/issues
- npm.io page: https://npm.io/package/react-clusterize

## Dependencies (2)

- [prop-types](https://npm.io/package/prop-types.md) ^15.5.8
- [clusterize.js](https://npm.io/package/clusterize.js.md) ^0.17.6

## Alternatives

- [@lexical/table](https://npm.io/package/@lexical/table.md) — 3.0M weekly downloads
- [mantine-datatable](https://npm.io/package/mantine-datatable.md) — 98.2K weekly downloads
- [react-native-collapsible-tab-view](https://npm.io/package/react-native-collapsible-tab-view.md) — 70.6K weekly downloads
- [@handsontable/vue3](https://npm.io/package/@handsontable/vue3.md) — 16.1K weekly downloads
- [vuewordcloud](https://npm.io/package/vuewordcloud.md) — 7.2K weekly downloads

## Recent versions

- 0.2.2 (latest) — 2017-10-06
- 0.2.1 — 2017-04-23
- 0.2.0 — 2017-04-19
- 0.1.0 — 2017-03-31

## README

# react-clusterize [![build status](https://travis-ci.org/cheton/react-clusterize.svg?branch=master)](https://travis-ci.org/cheton/react-clusterize) [![Coverage Status](https://coveralls.io/repos/github/cheton/react-clusterize/badge.svg?branch=master)](https://coveralls.io/github/cheton/react-clusterize?branch=master)

[![NPM](https://nodei.co/npm/react-clusterize.png?downloads=true&stars=true)](https://nodei.co/npm/react-clusterize/)

React component for [Clusterize.js](https://github.com/NeXTs/Clusterize.js/)

Demo: https://cheton.github.io/react-clusterize

## Installation

1. Install the latest version of [react](https://github.com/facebook/react) and [react-clusterize](https://github.com/cheton/react-clusterize):

  ```
  npm install --save react react-dom react-clusterize
  ```

## Usage

```js
import React from 'react';
import ReactDOM from 'react-dom';
import Clusterize from 'react-clusterize';

const rows = [];
const maxRows = 10000;
for (let i = 0; i < maxRows; ++i) {
    rows[i] = (
        <div style={{ borderBottom: '1px solid #f0f0f0', padding: '5px 10px' }}>
            Item #{i + 1}
        </div>
    );
}
rows.length = maxRows;

const mountNode = document.getElementById('#container');

ReactDOM.render(<Clusterize rows={rows} />, mountNode);
```

## API

### Properties

Name | Type | Default | Description 
:--- | :--- | :------ | :----------
rows | array | [] | An array of React elements or HTML tags in String.
scrollTop | number | 0 | Set the current vertical position of the scroll bar.

## License

MIT

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