title: React JS - Reading environment configurations from external property file
body: <p><strong>Problem</strong> :
  I am new to <code>React JS</code>, and looking for an option to read environment configs from an external property file. This problem is more specific for one of my clients, who is looking to have an option to change the environment files dynamically. E.g. change the <code>hostname/port</code> dynamically whenever there is a change. The build process is not owned by my client. I create a minified final package, which my client deploys it on <code>tomcat/web server.</code>  </p>
  
  <p><strong>Tried Solution</strong> :
  With some read-outs, I have configured .env files for different environments and able to successfully read configs from these files. However, these are more of a build process environment files. And, I am trying to find a way to read the configs from an external source after my package is created.</p>
  
  <blockquote>
    <p><strong>Possible solutions</strong> : Here is one possible approach I can think of -</p>
  </blockquote>
  
  <p>Read external property file using libraries like "properties-reader". I will provide the property file as part of my release bundle (i.e. build folder). My client can change this property file whenever required.</p>
  
  <p>Please suggest if this is the correct approach or is there a better solution to this problem?</p>