bredux

3.0.7 • Public • Published

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

/bredux/

    Package Sidebar

    Install

    npm i bredux

    Weekly Downloads

    13

    Version

    3.0.7

    License

    MIT

    Unpacked Size

    35.3 kB

    Total Files

    41

    Last publish

    Collaborators

    • okunishinishi