title: ReactJS: how to make two backend requests at once?
body: <p>Is it possible to make two backend requests at once from react? </p>
  
  <p>The code below is the first backend call. The post request gets send to the backend and then I would like to do another request. Is it possible at all? Or do I have to wait for the backend response until the next request could be made? 
  What I basically want is to get information about how many files have been uploaded. The upload could take 3 minutes and the user right now only sees a loading icon. I want to additionally add a text like <code>"50 of 800 Literatures uploaded"</code> and 10 seconds later <code>"100 of 800 litereratures uploaded"</code>. </p>
  
  <p>This is basically my code :</p>
  
  <pre><code>class ProjectLiterature extends Component {
    constructor(props) {
      super(props);
      this.state = {
  
        isLoading:"false",
  }
  }
    addLiterature(data, project_name) {
  
      this.setState({ isLoading:true }, () =&gt; {
        axios.post("http://127.0.0.1:5000/sendLiterature", data })
          .then(res =&gt; {
  
            this.setState({ isLoading: false })
          })
      })
    }
  </code></pre>