1.1.3 • Published 5 years ago

redux-clear v1.1.3

Weekly downloads
14
License
MIT
Repository
github
Last release
5 years ago

redux-clear

Instalation

yarn add redux-clear

Usage

import { createClearRedux, ClearAction } from 'redux-clear'

type State = number
interface Actions {
  addAndMult: ClearAction<[number, number]>
}

const { actions, reducer } = createClearRedux<State, Actions>(
  {
    addAndMult: state => (amount, param) => state + amount * param,
  },
  0,
)

actions.addAndMult(12, 2) // just didpatch it
reducer // just pass it to `combineReducers`

Easy fetching

import { createClearReduxWithFetching, ClearAction } from 'redux-clear'

// TODO: add example
1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.0

5 years ago