create-action-types
create flux ActionTypes less verbose
Install
$ npm install --save create-action-types
Usage
; 'INCREMENT_COUNTER' 'DECREMENT_COUNTER' // ..other action types; // =>// {// INCREMENT_COUNTER: 'INCREMENT_COUNTER',// DECREMENT_COUNTER: 'DECREMENT_COUNTER'// }
is more clear than:
; INCREMENT_COUNTER: null DECREMENT_COUNTER: null // ..other action types;
License
MIT © C.T. Lin