Skip to content

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

Notifications You must be signed in to change notification settings

MichaelBergquistSuarez/connect-rxjs-to-react

 
 

Repository files navigation

connect-rxjs-to-react

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

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

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.1%
  • HTML 0.9%