<commit_before># ReactList

A versatile infinite scroll [React] component.

## Install

```bash
bower install react-list
```

## API

### Properties

#### items

The list of items to be rendered.

#### renderItem

A function that receives and item (and its relative index) and returns the content to be rendered for that item.

#### renderLoading

A function that should return a loading message.

#### renderError

A function that receives an error from a failed `fetch` and should return an
error message.

#### renderEmpty

A function that should return a message when no items are available to render.

#### renderPageSize

A number that specifies how many items to render per page (does not apply to
`uniform` items).

#### threshold

The number of pixels to ensure the top and bottom of the list is buffered with.

#### uniform (defaults to `false`)

A boolean that specifies whether or not the rendered items are of uniform width
and height. Uniform items allow space to be preallocated on the page without actually rendering the items.


## Examples

Check out [the test file](https://orgsync.github.io/react-list/test.html) for a
full example.

## Known Issues

- Paging should be supported, but isn't yet.

[React]: https://github.com/facebook/react<commit_msg>Add more to README.md<commit_after># ReactList

A versatile infinite scroll [React] component.

## Install

```bash
bower install react-list
```

## API

### Properties

#### items

The list of items to be rendered.

#### renderItem

A function that receives and item (and its relative index) and returns the content to be rendered for that item.

#### renderLoading

A function that should return a loading message.

#### renderError

A function that receives an error from a failed `fetch` and should return an
error message.

#### renderEmpty

A function that should return a message when no items are available to render.

#### renderPageSize (defaults to `10`)

A number that specifies how many items to render per page (does not apply to
`uniform` items).

#### threshold (defaults to `500`)

The number of pixels to ensure the top and bottom of the list is buffered with.

#### uniform (defaults to `false`)

A boolean that specifies whether or not the rendered items are of uniform width
and height. Uniform items allow space to be preallocated on the page without actually rendering the items.

#### fetch

A function that receives the current list of items and a callback. The callback
should be invoked when the fetch is complete with the error (if any) as the
first argument and a boolean determining whether the entire list is fetched or
not.


## Examples

Check out [the test file](https://orgsync.github.io/react-list/test.html) for a
full example.

## Known Issues

- Paging should be supported, but isn't yet.

[React]: https://github.com/facebook/react
{'fraction_non_alphanumeric': 0.07987332864180155, 'fraction_numerical': 0.0017593244194229415, 'mean_word_length': 4.187956204379562, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6041552', 'n_tokens_mistral': 755, 'n_tokens_neox': 731, 'n_words': 404}