index.jsx 409 B

12345678910111213141516
  1. require("bootstrap/dist/css/bootstrap.css");
  2. require("../main.css");
  3. var React = require('react');
  4. var App = require('./App');
  5. var DomainStore = require('./stores').Domains;
  6. var AppComponent = React.render(
  7. <App history={true} domains={DomainStore.cortex} />,
  8. document.getElementById('content')
  9. );
  10. DomainStore.cortex.on('update', function(newStore) {
  11. AppComponent.setProps({domains: newStore});
  12. });