Skip to content

Instantly share code, notes, and snippets.

@DobrinGanev
DobrinGanev / redux-rx.js
Last active September 15, 2017 16:10
Redux pattern with RxJS
const Rx = require('rx')
const action$ = new Rx.Subject()
const initState = 0
const reducer = (state, action) => {
switch (action.type) {
case 'INC':
return state + action.payload
default:
return state