score:1

update:

in your mapdispatchtoprops:

const mapdispatchtoprops = (dispatch) => ({
  updatedispo: dispo => {dispatch(updatedispo(dispo))}
})

but you try to call udaptedispo. pay attention to naming.


you try to call this.props.udpatedispo out of test component. out of this component this.props doesn't exist.

and edit your mapdispatchtoprops function:

const mapdispatchtoprops = dispatch => ({
  updatedispo: dispo => dispatch(updatedispo(dispo))
})

Related Query

More Query from same tag