Writing Shorter React-Redux Containers

1 · Nick Sweeting · Dec. 20, 2017, 9:15 p.m.
If you write react + redux code all day, chances are your fingers are used to typing out this pattern of mapStateToProps, mapDispatchToProps, and connect:https://medium.com/media/452077e5f9bc976937b980a79e69b807/hrefIt’s ok. The functions are re-usable, everything is straightforward, what’s not to like?As an experiment, I wrote this, and ended up keeping it because it made the boilerplate more concise:import {connect} from 'react-redux'const reduxify = (container) => connect( container...