re: The 10 Component Commandments VIEW POST

FULL DISCUSSION
 

my favorite tip with redux connect & compose to reduce boilerplate (with HOCs):

const mapStateToProps = state => ({ ... });

export default compose(
  withRouter,
  withStyles,
  ...
  connect(mapStateToProps)
)(MyComponent);
code of conduct - report abuse