Check out example codes for "axios multiple request". It will help you in understanding the concepts better.

Code Example 1

// set requests
const reqOne = axios.get(endpoint);
const reqTwo = axios.get(endpoint);

axios.all([reqOne, reqTwo]).then(axios.spread((...responses) => {
  const responseOne = responses[0]
  const responseTwo = responses[1]
})).catch(errors => {
  // react on errors.
})

Learn ReactJs, React Native from akashmittal.com