/connect-rxjs-to-react

Connect rxjs to React component in Redux style... but without dispatch and constants.

Primary LanguageJavaScript

connect-rxjs-to-react

Simple way to connect rxjs to React component in Redux style... but without dispatch and constants.

export default connect(state$, state => ({
  counter: state.counter,
  increment: CounterActions.increment$.next,
  decrement: CounterActions.decrement$.next,
}))(Counter);

Read more about RxJS with React: http://michalzalecki.com/use-rxjs-with-react

Using xstream?

Checkout xstream branch for rewrite with xstream.