Skip to content

Instantly share code, notes, and snippets.

View kagiasoldaccount's full-sized avatar

Benjamin Kagia kagiasoldaccount

View GitHub Profile
@kagiasoldaccount
kagiasoldaccount / StoreFactory.js
Last active August 29, 2015 14:25
redux 1.0.0-alpha store factory
import {createStore, combineReducers, applyMiddleware} from 'redux';
class StoreFactory {
constructor() {
this.reducers = {};
this.middlewares = [];
}
addReducers(reducers) {
this.reducers = {