title: Server-side variables to Client-Side with React-Engine and Express
body: <p>I'm reasonably new to React/React-Engine. I have a config on the server-side that I need to pass certain values of to client-side however I have a dependency on NODE_ENV in order to get the correct config out.</p>
  
  <pre><code>var config = {
      local: { ... }
      production: { ...}
  }
  
  module.exports = config[process.env.NODE_ENV]
  </code></pre>
  
  <p>Which works just fine server-side, however since I need to reference some of  values contained in these objects on the client-side so I can't require(./config); in my React JSX.</p>
  
  <p>Is there any easy way to pass this stuff into React? At the end of the day, I'd be happy if I could just pass the 'config' straight into React somehow without even having to worry about NODE_ENV on the client-side.</p>
  
  <p>Thanks</p>