# react-sectionlist

> A Library of React SectionList. The goal is to make it similar to React Native's SectionList.

Latest version **0.1.2** (published 2018-09-29) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2018-09-29 |
| First published | 2018-09-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Younghoo Kim |
| Maintainers | hooslab |
| Keywords | react, sectionlist, list |

## Links

- npm: https://www.npmjs.com/package/react-sectionlist
- Repository: https://github.com/HoosLab/react-sectionlist
- Homepage: https://github.com/HoosLab/react-sectionlist#readme
- Issues: https://github.com/HoosLab/react-sectionlist/issues
- npm.io page: https://npm.io/package/react-sectionlist

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.2 (latest) — 2018-09-29
- 0.1.1 — 2018-09-28
- 0.1.0 — 2018-09-28

## README

# react-sectionlist
A Library of React SectionList.
The goal is to make it similar to React Native's SectionList.

## Intro
![Alt sectionlist screenshot](media/sectionlist.png)

## Installation
Run the following command:

`npm install react-sectionlist`

## Getting Started
```jsx
import React, { Component } from 'react';
import ReactSectionList from 'react-sectionlist';

class App extends Component {

  renderSectionHeader = item => <div>{item.title}</div>
  renderItem = (item, index) => <div>{item}</div>
  keyExtractor = (item, index) => item.title + index;

  render() {
    const sections = [
      {
        title: 'User',
        data: [
          <div className="section-item-title">
            Edit Profile
          </div>
        ]
      },
      {
        title: 'Accessability',
        data: [
          <div className="section-item-title">
            Mode
          </div>,
          <div className="section-item-title">
            Language
          </div>
        ],
        description: `This section describes user accessability.`
      },
      {
        title: 'Others',
        data: [
          <div className="section-item-title">
            About
          </div>,
          <div className="section-item-title">
            Ask
          </div>,
          <div className="section-item-title">
            Open Source
          </div>,
        ]
      }
    ];
    
    return (
      <ReactSectionList
        keyExtractor={this.keyExtractor}
        renderSectionHeader={this.renderSectionHeader}
        renderItem={this.renderItem}
        sections={sections}
      />
    );
  }
}

export default App;

```

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