# react-join

> Array.join() for React components

Latest version **1.1.4** (published 2017-10-26) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.4 |
| Published | 2017-10-26 |
| First published | 2017-10-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Tan Nhu |
| Maintainers | tnhu |

## Links

- npm: https://www.npmjs.com/package/react-join
- npm.io page: https://npm.io/package/react-join

## Recent versions

- 1.1.4 (latest) — 2017-10-26
- 1.1.3 — 2017-10-26
- 1.1.2 — 2017-10-26
- 1.1.1 — 2017-10-26
- 1.1.0 — 2017-10-26
- 1.0.1 — 2017-10-26
- 1.0.0 — 2017-10-26

## README

# react-join

Array.join() for React components.

## Setup

`npm install react-join`

## Sample

View interactive samples: https://codesandbox.io/s/mq690l2jvp

```javascript
import ReactJoin from 'react-join'

const links = [
  <Link key="google" href="https://google.com" name="Google"></Link>,
  <Link key="amazon" href="https://amazon.com" name="Amazon"></Link>,
  <Link key="linkedin" href="https://linkedin.com" name="LinkedIn"></Link>
]

// Join links by ", " (default)
<ReactJoin>{links}</ReactJoin>

// Join links by a React component
<ReactJoin separator={<span>, </span>}>{links}</ReactJoin>

// Join links by a closure that returns a React component
<ReactJoin separator={index => <span index={index}>, </span>}>{links}</ReactJoin>
```

## License

MIT

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