# react-soundjs

> React components to make help integrate with SoundJS

Latest version **0.1.5** (published 2016-03-08) · ISC license · 0 weekly downloads

## Install

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

## 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.1.5 |
| Published | 2016-03-08 |
| First published | 2016-02-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Michael "Z" Goddard |
| Maintainers | mzgoddard |

## Links

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

## Recent versions

- 0.1.5 (latest) — 2016-03-08
- 0.1.4 — 2016-03-08
- 0.1.3 — 2016-03-01
- 0.1.2 — 2016-03-01
- 0.1.0 — 2016-02-29

## README

# react-soundjs

Connect react components to SoundJS. A short snippet can get this running.

```jsx
class App extends React.Component {
  construct() {
    // ...
  }
  addItem() {
    // ...
  }
  removeItem() {
    // ...
  }
  render() {
    return (<SoundContext soundjs={create.Sound}>
      <div>
        <h1>react-soundjs Example</h1>
        <div onClick={this.addItem}>Add Item</div>
        <div>
          <SoundRegister sounds={[c4, g4]} />
          {this.state.items.map((item, index) => (
            <div key={index} onClick={this.removeItem} dataIndex={index}>
              <Sound onMount={c4} onUnmount={g4} />
              [x] {item.name}
            </div>
          ))}
        </div>
      </div>
    </SoundContext>);
  }
}
```

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