title: How to call other api using data from one api in react js
body: <p>I'm using axios in react.js application.</p>
  
  <p>I'm calling one API to get access token. I'm calling some other API's when componentWillMount.</p>
  
  <p>I need to pass access token generated from first api call to other api calls.</p>
  
  <p>How can I do this ?</p>
  
  <p>My Code:</p>
  
  <pre><code>componentWillMount() {
      if(!isLoggedIn()){
          this.props.actions.token();
      //other api calls
          this.props.actions.getData();
      }       
  }
  </code></pre>
  
  <p>Thank You</p>