src/App.js
/**
   * helper function that re-runs a previous request with the same parameters as before
   * @param   {object} index number for the index in the history array
   * @return  {void}
   */
helper function that re-runs a previous request with the same parameters as before
@param   {object} index number for the index in the history array
@return  {void}
helper function that re - runs a previous request with the same parameters as before @param { object } index number for the index in the history array @return { void }
async fetchPrevReq(index) {
    const prevReq = this.state.history[index];
    if (prevReq) {
      await this.setState({
        url: prevReq.url,
        reqType: prevReq.reqType,
        reqBody: prevReq.reqBody,
      });
      await this.apiFetch();
    }
  }
async fetchPrevReq ( index ) { const prevReq = this . state . history [ index ] ; if ( prevReq ) { await this . setState ( { url : prevReq . url , reqType : prevReq . reqType , reqBody : prevReq . reqBody , } ) ; await this . apiFetch ( ) ; } }
helper function that re-runs a previous request with the same parameters as before
 @param   {object} index number for the index in the history array
 @return  {void}
helper function that re - runs a previous request with the same parameters as before @param { object } index number for the index in the history array @return { void }