lore-generate-action
Generates a new action in src/actions
Generates a new action in src/actions
CLI command to add an Action to your project.
lore generate action [action-name]
lore generate action example
The command above will generate a file located at src/actions/example.js
that looks like this:
export default function(params) {
return function(dispatch) {
// return dispatch({
// type: 'ACTION_NAME',
// payload: {}
// });
};
};