title: How can I use a config file in React?
body: <p>Let's say I have 5 jsx files and each file uses some config parameter.
  My index.js file imports all of these 5 jsx files.  </p>
  
  <p>Instead of having my config data spread accross 5 files, is there a way for my jsx files to get the data from a global JS object which has loaded the data from a config file?</p>
  
  <p>I've seen some examples, but I've not been able to get them to work.<br>
  <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import" rel="noreferrer">JS6 import function</a> | <a href="https://stackoverflow.com/questions/30568796/how-to-store-configuration-file-and-read-it-using-react">Example using webpack</a>  </p>