In general, this would be used as follows:
class MyReactComponent extends React.Component {}
export default connect(mapStateToProps, mapDispatchToProps)(MyReactComponent);
However, because of how the decorator syntax works, this can be replaced with:
@connect(mapStateToProps, mapDispatchToProps)