const React = require('react');
const ReactDOM = require('react-dom');
const { Provider } = require('react-redux');

const { initializeApp } =  require('./actions');
const Root =  require('./components/Root');
const config =  require('./config');
const { configureStore } =  require('./store');


/**
 * @namespace Immutable
 */

/**
 * @namespace State
 */


window.document.addEventListener('DOMContentLoaded', () => {
  const store = configureStore();

  // For development on your browser
  window._config = config;
  window._store = store;

  const app = React.createElement(
    Provider,
    { store },
    React.createElement(Root)
  );

  const appContainer = window.document.querySelector('.js-dd-container');
  ReactDOM.render(app, appContainer, () => {
    store.dispatch(initializeApp());
  });
});

const React = require('react');
const ReactDOM = require('react-dom');
const { Provider } = require('react-redux');

const { initializeApp } =  require('./actions');
const Root =  require('./components/Root');
const config =  require('./config');
const acts =  require('./immutable/acts');
const constants =  require('./immutable/constants');
const boardAnimations =  require('./immutable/board-animations');
const jobs =  require('./immutable/jobs');
const { configureStore } =  require('./store');


/**
 * @namespace Immutable
 */

/**
 * @namespace State
 */


window.document.addEventListener('DOMContentLoaded', () => {
  const store = configureStore();

  // For development on your browser
  window._config = config;
  window._immutable = {
    acts,
    boardAnimations,
    constants,
    jobs,
  };
  window._store = store;

  const app = React.createElement(
    Provider,
    { store },
    React.createElement(Root)
  );

  const appContainer = window.document.querySelector('.js-dd-container');
  ReactDOM.render(app, appContainer, () => {
    store.dispatch(initializeApp());
  });
});

Define some variables for manual debugging
Define some variables for manual debugging
