@gik/redux-factory

0.0.7 • Public • Published

@gik/redux-factory 0.0.7

A shorthand for our redux/redux-thunk workflow

Contributors
Supported platforms
  • darwin
  • linux

Table of contents

  • Factory function Actions and Reducers factory.
  • Store function Store creator.

Factory

global function

Actions and Reducers factory. Shorthand for reducing boilerplate needed to cerate reducers and actions.

Parameters
initState Object The initial state for the reducer.
declarations Object An object contaning an action and a reducer.
prefix string An optional prefix for the actions/reducers.
Returns

Object - A { Actions, Reducers } object.

▲ Top


Store

global function

Store creator. Shorthand for Redux's CreateStore.

Parameters
reducers Object | function Either a reducer or an object containing reducers.
initStore Object The initial value of the store.
middleware Array An array of middlewares to register.
Returns

ReduxStore - The store to pass to the provider.

▲ Top


Package Sidebar

Install

npm i @gik/redux-factory

Weekly Downloads

0

Version

0.0.7

License

MIT

Unpacked Size

12.2 kB

Total Files

6

Last publish

Collaborators

  • etor