tj / frontend-boilerplate

webpack-react-redux-babel-autoprefixer-hmr-postcss-css-modules-rucksack-boilerplate (unmaintained, I don't use it anymore)
2.93k stars 268 forks source link

Reduce boilerplate, use `mapDispatchToProps` obj #67

Closed grifotv closed 8 years ago

grifotv commented 8 years ago

Change based on this https://github.com/reactjs/react-redux/blob/v4.4.0/src/components/connect.js#L38

tj commented 8 years ago

I find it really confusing without the function name personally, you have no idea what it does since it's just an arbitrary argument passed in, not an object with { mapProps: ... } etc. So I'll have to close :D thanks though! even if we just name the var and pass that in it would be fine, Redux's arg handling is a little too magical for me