Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redux best practices document #2

Open
medains opened this issue Feb 12, 2018 · 0 comments
Open

redux best practices document #2

medains opened this issue Feb 12, 2018 · 0 comments

Comments

@medains
Copy link

medains commented Feb 12, 2018

Recommends using NOUN_VERB for action names and verbNoun for action creator names, and using redux-actions.

redux-actions method createActions generates automatic action creator names as nounVerb from a NOUN_VERB action name - obviously this can be coded around, but perhaps the advice could reflect the use of the module?

For example, this does not work

export const { addTodo, deleteTodo } = createActions({},'TODO_ADD','TODO_DELETE');

And this does

export const { addTodo, deleteTodo } = createActions({},'ADD_TODO','DELETE_TODO');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant