export function resetactiontype() {
  return dispatch => {
      type: 'reset_action_type',

this syntax is used if you setup redux-thunk middleware. the purpose of redux-thunk to make the async request and once the request is resolved, it dispatches the response data. that is why dispatch is passed an argument. since you have no async code inside action creator, you must return a plain object.

when you connect to the store, dispatch already will call that action generator.

 connect(mapstatetoprops, { youractioncreator })(component);

Related Query

More Query from same tag