Why?
Because declaring action constants and action creator function for each action is a real pain.
One object to rule them all
Create an action config object.
; const = actions = home: fetchFeed: payload: 'feeds' ;
Redux Fast Actions generates actions constants and action creators.
types: HOME_FETCH_FEED: 'HOME_FETCH_FEED' actions: home: { return type: HOME_FETCH_FEED payload: feeds }
Installation
npm i redux-fast-actions --save
or if you prefer yarn:
yarn add redux-fast-actions