Skip to content

Instantly share code, notes, and snippets.

@jaseflow
Created October 21, 2015 04:22
Show Gist options
  • Select an option

  • Save jaseflow/cd0eccf1ecaa03529052 to your computer and use it in GitHub Desktop.

Select an option

Save jaseflow/cd0eccf1ecaa03529052 to your computer and use it in GitHub Desktop.
"use strict";
var React = require("react");
var ReactDOM = require("react-dom");
var Conductr = React.createFactory(require("./components/Conductr/Conductr").Conductr); //eslint-disable-line no-unused-vars
var mountNode = document.getElementById("react-main-mount");
if(process.env.NODE_ENV === "dev") {
ReactDOM.render(<Conductr url="http://localhost:4302/environments" />, mountNode);
} else {
ReactDOM.render(<Conductr url="http://conductr-backend-web.us-west-2.test.expedia.com/environments" />, mountNode);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment