code: function dispatchToProps(dispatch) {
      return {
          add: function add() {
              var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
              var name = arguments[1];
  
              return dispatch({
                  type: generateType(types.add, name),
                  payload: {
                      name: name,
                      state: state
                  }
              });
          },
          delete: function _delete(name) {
              return dispatch({
                  type: generateType(types.delete, name),
                  payload: {
                      name: name
                  }
              });
          },
          reset: function reset() {
              var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
              var name = arguments[1];
  
              return dispatch({
                  type: generateType(types.reset, name),
                  payload: {
                      name: name,
                      state: state
                  }
              });
          },
          set: function set() {
              var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
              var name = arguments[1];
  
              return dispatch({
                  type: generateType(types.set, name),
                  payload: {
                      name: name,
                      state: state
                  }
              });
          }
      };
  }
docs: these are set as props on the HOC