@banbrick/redux-creator
TypeScript icon, indicating that this package has built-in type declarations

1.5.1 • Public • Published

@banbrick/redux-creator

redux creator for less boilerplate, also allow redux to be loaded by code split.

Install

npm i @banbrick/redux-creator

Example

ReactCoreTemplate

How to use

Configure store

create a store can use ReduxCreator with configureStore

import { configureCreatorStore } from '@banbrick/redux-creator';

// its also possible to add reducers and middlewares through this api
const store = configureCreatorStore({ 
  reducers, // static reducers, built without creator
  preloadedState, // inital state
  middlewares, // addtional middlewares
  history, // for auto add location middleware
  devTool: true // enable redux-dev-tool
});

Configure Reducers

Others

/@banbrick/redux-creator/

    Package Sidebar

    Install

    npm i @banbrick/redux-creator

    Weekly Downloads

    0

    Version

    1.5.1

    License

    MIT

    Unpacked Size

    41.7 kB

    Total Files

    60

    Last publish

    Collaborators

    • jiaronggu