@sharyn/actions
v1.0.0
Published
[Flux Standard Actions](https://github.com/redux-utilities/flux-standard-action) creator functions.
Downloads
2
Readme
🌹 @sharyn/actions
Flux Standard Actions creator functions.
Installation
npm install --save @sharyn/actions
# or
yarn add @sharyn/actions
Usage
import { action, errorAction } from '@sharyn/actions'
action('hello', { name: 'Sven' }, 'nice') // { type: 'hello', payload: { name: 'Sven' }, meta: 'nice' }
errorAction('bye') // { error: true, type: 'bye' }