# react-side-channel

> Just render something aside, and be back

Latest version **1.0.0** (published 2018-06-13) · 0 weekly downloads

## Install

```sh
npm install react-side-channel
pnpm add react-side-channel
yarn add react-side-channel
bun add react-side-channel
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-06-13 |
| First published | 2018-06-13 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=8.5.0 |
| Dependencies | 1 |
| Unpacked size | 6.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Anton Korzunov |
| Maintainers | kashey |

## Links

- npm: https://www.npmjs.com/package/react-side-channel
- Homepage: https://github.com/theKashey/react-side-channel#readme
- Issues: https://github.com/theKashey/react-side-channel/issues
- npm.io page: https://npm.io/package/react-side-channel

## Dependencies (1)

- [prop-types](https://npm.io/package/prop-types.md) ^15.6.1

## Recent versions

- 1.0.0 (latest) — 2018-06-13

## README

React-Side-Channel 🌒
======
Render something aside, and reuse in main component tree

[![NPM version](https://img.shields.io/npm/v/react-side-channel.svg)](https://www.npmjs.com/package/react-side-channel)
 
This is more or less about keeping the react render "tree" clean

# API
 - SideChannel with following props
   - `initial` - initial value
   - `render` - something with input, and __output__.
   - `onChange` - data update callback
   - `children` - in form of renderprop, to be givven __output__.
   
The goal of the library - put aside `render`, and pipe `output` to `children`, no matter how _deep_ it is.   
```js
import {SideChannel} from 'react-side-channel';


<SideChannel
  initial={0}
  
  render={ ({input, output}) => <Value initial={input}>{output}</Value> }
>
 ({value, set}) => (
   <div>{value}</div>
 )}
</SideChannel>   
```

# Licence
 MIT

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