src/App.js
/**
   * function that runs arequest based on the current form values. It calls the apiFetch function
   * after updating state
   * @param   {string} reqType value of the currently selected req type button
   * @param   {object} reqBody value of the string passed into the req body textarea element
   * @return  {void}
   */
function that runs arequest based on the current form values. It calls the apiFetch function
after updating state
@param   {string} reqType value of the currently selected req type button
@param   {object} reqBody value of the string passed into the req body textarea element
@return  {void}
function that runs arequest based on the current form values . It calls the apiFetch function after updating state @param { string } reqType value of the currently selected req type button @param { object } reqBody value of the string passed into the req body textarea element @return { void }
async fetchWithForm(reqType, reqBody) {
    await this.setState({
      reqType,
      reqBody: reqType === 'GET' || reqType === 'DELETE' ? null : reqBody,
    });
    await this.apiFetch();
  }
async fetchWithForm ( reqType , reqBody ) { await this . setState ( { reqType , reqBody : reqType === 'GET' || reqType === 'DELETE' ? null : reqBody , } ) ; await this . apiFetch ( ) ; }
function that runs arequest based on the current form values.
function that runs arequest based on the current form values .