@izettle/app-utils

Utilities and helpers for javascript applications developed with React, Redux and RxJS.

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
00Oct 31, 2018Oct 14, 2016Minified + gzip package size for @izettle/app-utils in KB

Readme

javascript-app-utils

Utilities and helpers for javascript applications developed with React, Redux and RxJS.

combineModules()

Combine modules that has a reducer and/or an epic:

import { applyMiddleware, createStore } from "redux"
import { createEpicMiddleware } from "redux-observable"
import { combineModules } from "@izettle/app-utils"
import * as modules from "./modules"

const rootModule = combineModules(modules)

const store = createStore(rootModule.reducer, {}, applyMiddleware(
  createEpicMiddleware(rootModule.epic)
))

Modules must look like this:

const exampleModule = {
  name: "example",
  reducer: (state, action) => state,
  epic: action$ => action$
}

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.