Skip to content

Latest commit

 

History

History
138 lines (87 loc) · 3.13 KB

README.md

File metadata and controls

138 lines (87 loc) · 3.13 KB

bredux

Build Status npm Version JS Standard

B flavour redux

Installation

$ npm install bredux --save

Usage

'use strict'

const { create, hook } = require('bredux')

let store = create(/* ... */)

hook(store, {
  // Hook handlers
  lang (prev, cur) {
    // Fired when lang changed
  }
})

Functions

Available functions

Signature Description
applyMiddleware(middlewares) -> function Apply middlewares
combineReducers(reducers) -> function Combine reducers
create(reducer, preloadedState, enhancers) -> Object Create a store
devTool()
hook(store, handlers) -> function Add hook on store.
persistize(keys, options) Define hook to persist in local storage

License

This software is released under the MIT License.

Links