Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default function(WrappedComponent, actions, state = mapStateToProps) {
return withRouter(
connect(
state,
actions,
)(WrappedComponent),
);
}
function reduxConnect(WrappedComponent, actions, state = mapStateToProps) {
return connect(
state,
actions,
)(WrappedComponent);
}