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)
export default class MyReactComponent extends React.Component {}
and get the exact same functionality.
Excerpts from: https://www.sitepoint.com/javascript-decorators-what-they-are/