ustccjw / redux-action

[redux-action]

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build status Test coverage NPM version License Dependency status

redux-action

APIs

  • createReducer
  • createAction
import { createAction } from 'redux-action'

const action = createAction('ACTION', (args) => {
  // ...
  return payload
})
import { createReducer } from 'redux-action'

const reducer = createReducer(defaultState, {
  'ACTION': (payload, state, action) => {
    // ...
  }
})

Conceptions

License

MIT

About

[redux-action]


Languages

Language:JavaScript 100.0%