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
- Host: GitHub
- URL: https://github.com/nyavro/react-streamy
- Owner: nyavro
- Created: 2020-12-22T18:19:41.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-15T12:37:31.000Z (over 4 years ago)
- Last Synced: 2025-08-23T10:44:12.960Z (about 2 months ago)
- Language: TypeScript
- Size: 61.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React-streamy connects RxJs with React
[](https://coveralls.io/github/nyavro/React-streamy?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);