1 min readAug 23, 2018
Thanks!
In the case of redux things are even simpler (react-redux’s connect is already a HOC):
const mapStateToProps = (state) => ({...});
const mapDispatchToProps = (dispatch) => ({...});const withConnect = connect(mapStateToProps, mapDispatchToProps);export default compose(
withConnect,
withFormLogic,
)(SignupForm);