Map properties to state in react-redux
问题 I have a component that uses state to provide data to user. For example <div>this.state.variableInState</div> . This component can dispatch some method (for example on onClick action). I'm currently using react-redux an connect method to map store to props . Is there a way I can setState after dispatch? // actions export function executeAction() { return function (dispatch, getState) { dispatch({ type: 'MY_ACTION', payload: axios.get('/some/url') }); }; } // reducer export default function