An open API service indexing awesome lists of open source software.

https://github.com/nyavro/react-streamy

Redux like store implementation based on RxJs
https://github.com/nyavro/react-streamy

Last synced: about 2 months ago
JSON representation

Redux like store implementation based on RxJs

Awesome Lists containing this project

README

          

# React-streamy connects RxJs with React

[![Coverage Status](https://coveralls.io/repos/github/nyavro/React-streamy/badge.svg?branch=master)](https://coveralls.io/github/nyavro/React-streamy?branch=master)
[![Build Status](https://travis-ci.com/nyavro/React-streamy.svg?branch=master)](https://travis-ci.com/nyavro/React-streamy)

### connectStream

Usage:

// Emits tick value each second:
const ticksObservable = interval(1000).pipe(map((tick) => ({tick})));
...
// Component to attach observable to:
const ShowTicks = (props: {tick: number}) => (

Ticks: {props.tick}
);
...
// Idle component to show before first value emitted:
const Idle = () => (
No data
);
...
// Connected:
const Connected = connectStream(ShowTicks, ticksObservable, Idle);