var React = require('react'); var UserStore = require('./stores/UserStore'); var Menu = require('./components/Menu'); var ErrorMessages = require('./components/ErrorMessages'); var initalizer = require('./stores/initalizer'); var LogEntriesComponent = require('./components/log/LogEntriesComponent'); var FeatureTogglesComponent = require('./components/feature/FeatureTogglesComponent'); var StrategiesComponent = require('./components/strategy/StrategiesComponent'); var ArchiveFeatureComponent = require('./components/feature/ArchiveFeatureComponent'); var Router = require('react-router'); var DefaultRoute = Router.DefaultRoute; var Link = Router.Link; var Route = Router.Route; var RouteHandler = Router.RouteHandler; UserStore.init(); var UnleashApp = React.createClass({ contextTypes: { router: React.PropTypes.func }, componentWillMount: function() { initalizer(30); }, render: function () { return (
Features Strategies Log Archive
); } }); var routes = ( ); Router.run(routes, function (Handler) { React.render(, document.getElementById('content')); }); module.exports = UnleashApp;