API Reference
Since this package only consists of a few helper functions to reduce the boilerplate of writing a redux application, the API surface is pretty small / atomic.
Top-Level Exports
- combineReduxDucks({ducks: Array<>, context: 'client' | 'server'})
- createActionTypeFactory(appNamespace: string, moduleNamespace: string)
- createEnvironmentSpecificSaga
- createReducer(actionHandlers: Object, initialState: any)
- createRootSaga(...sagas)
Importing
Every function described above is a top-level export. You can import any of them like this:
ES6
import {combineReduxDucks} from 'redux-lumbergh';
ES5 (CommonJS)
const combineReduxDucks = require('redux-lumbergh').combineReduxDucks