0.1.5 • Published 8 years ago

@kogai/redux-util v0.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
8 years ago

redux-util

Utility tools for redux based project. It has purpose that do not rely on babel(or other transpiler).

Usage

createAction

// ActionCreator
const createAction = require('@kogai/redux-utils').createAction;
const sampleAction = createAction({ type: 'SAMPLE_ACTION' });

// Redux-Middleware
const actionVerification = require('@kogai/redux-utils').actionVerification;
const createStoreWithMiddleware = applyMiddleware(
  actionVerification
)(createStore);