reduxHow to link redux and react


Syntax

  • <Provider store>
  • connect([mapStateToProps], [mapDispatchToProps], [mergeProps], [options])

Parameters

ArgumentDescription
storeRedux store
mapStateToPropsUser provided mapping: (state, ownProps) => resultProps