title: How to store Configuration file and read it using React
body: <p>I am new on react.js I have implemented one component in which I am fetching the data from server and use it like, </p>
  
  <pre><code>CallEnterprise:function(TenantId){
  
  
      fetchData('http://xxx.xxx.xx.xx:8090/Enterprises?TenantId='+TenantId+' &amp;format=json').then(function(enterprises) 
      {
          EnterprisePerspectiveActions.getEnterprise(enterprises);
      }).catch(function()
      {
          alert("There was some issue in API Call please contact Admin");
          //ComponentAppDispatcher.handleViewAction({
          //    actionType: MetaItemConstants.RECEIVE_ERROR,
          //    error: 'There was a problem getting the enterprises'
          //});
      });
  },
  </code></pre>
  
  <p>I want to store Url in configuration file so when I deployed this on Testing server or on Production I have to just change the url on config file not in js file but I don't know how to use configuration file in react.js </p>
  
  <p>Can anyone please guide me how can I achieve this ?</p>