I was reading the documentation for the Redux library and it has this example:
mapStateToProps argument is specified, the new component will
subscribe to Redux store updates. This means that any time the store
mapStateToProps will be called. The results of
mapStateToProps must be a plain object, which will be merged into
the component’s props.