title: Reactjs read a properties file?
body: <p>I have trouble looking for a solution on <strong>how to read a properties file in reactJS.</strong></p>
  
  <p>I've read that you can use the module "properties-reader" but I can't seem to make the require work. Is there a simple way ?</p>
  
  <p>For example,</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>import React, { Component } from "react";
  import './properties.file';
  // var propertiesUser = properties.get('user');
  class Main extends Component {
  
    render() {
      // Change title
      document.title = "Milo's Collection"
  
      return (
        &lt;div&gt;
          {propertiesUser}
        &lt;/div&gt;
  
      );
    }
  }
  
  export default Main;</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.1.0/react.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.1.0/react-dom.min.js"&gt;&lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Can anyone help me? Thanks in advance guys!</p>