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

ddolheguy/connect-rxjs-to-react

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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$, 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.

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.3%
  • HTML 0.7%