You’ll waste a super precious variable name just for passing it to mapDispatchToProps. You won’t even be able do something like const { login } = this.props because you already defined the login variable by assigning it to the action creator imported from the duck.
My journey toward a maintainable project structure for React/Redux
Matteo Mazzarolo
29016

you shouldn’t do `import * actions` anyways because you can’t see which one you actually use. Also, if a variable is defined in the upperscope naming a variable the same somewhere else in the file is bad practice

Show your support

Clapping shows how much you appreciated David Floegel’s story.