var React = require('react'); var LauncherView = require('./components/launcher/launcher-view.js'); var EditView = require('./components/edit/edit-view.js'); var Provider = require('react-redux').Provider; var connect = require('react-redux').connect; var store = require('./store'); // Main component var App = React.createClass({ render: function() { var editMode = process.env.PITAYA_MODE === 'edit'; var view = editMode ? : ; return (
{view}
); }, }); // Select props to inject from store state function select(state) { return { processOpts: state.processOpts } } // Connect App to Redux store App = connect(select)(App); React.render( { function() { return ; } } , document.body );