title: pass the multiple value in post api?
body: <p>Here is my post api request, I need this data from front-end:</p>
  
  <p><a href="https://i.stack.imgur.com/cPFwd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cPFwd.png" alt="enter image description here"></a></p>
  
  <p>Consider the code below, the <code>users_id</code> is actually getting from localStorage, while <code>items_id</code> taken from another api that I have been call from <code>componentDidMount</code>:</p>
  
  <pre><code>purchaseOrder(){
          const Users_id = localStorage.getItem('id'); // get user_id
          const items_id = this.state.data.id; // get items_id
          console.log(Users_id)
          console.log(items_id)
          PostData('api/purchase-order-item/submit', this.state).then ((result) =&gt; {  // how to pass the users id and items id to api?
              let responseJSON = result;
              console.log(responseJSON);
              console.log(this.state)
              });
      }
  </code></pre>
  
  <p>this.state :</p>
  
  <pre><code>constructor(props){
    super(props);
  
     this.state ={
        data: [],
        remark: '', //for api 
        quantity: '', // for api
        isLoaded: false,
        redirect: false,
        history: PropTypes.object.isRequired
     }
      this.purchaseOrder = this.purchaseOrder.bind(this);
       this.onChange = this.onChange.bind(this);
   }
  </code></pre>