Server-side variables to Client-Side with React-Engine and Express
问题 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. var config = { local: { ... } production: { ...} } module.exports = config[process.env.NODE_ENV] 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. Is there any