import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import store from './store';
import { API_URL } from './constants';
import {
  clearDom,
  createRootDiv,
  importBlueprintStyleSheet,
  importNormalizrStyleSheet,
  attachPolarisStyleSheet,
  attachToastrStylesSheet
} from './utils/config';

import App from './components/App';

// If not in development, kick off productions configurations.
if (API_URL !== 'http://localhost:7777') {
  clearDom();
  createRootDiv();
}

importBlueprintStyleSheet();
importNormalizrStyleSheet();

attachPolarisStyleSheet();
attachToastrStylesSheet();

ReactDOM.render(
  <Provider store={store}>
    <App />
  </Provider>,
  document.querySelector('#root') as HTMLElement
);
// registerServiceWorker();

import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import store from './store';
import { API_URL } from './constants';
import {
  clearDom,
  createRootDiv,
  importNormalizrStyleSheet,
  attachPolarisStyleSheet,
  attachToastrStylesSheet
} from './utils/config';

import App from './components/App';

// If not in development, kick off productions configurations.
if (API_URL !== 'http://localhost:7777') {
  clearDom();
  createRootDiv();
}

importNormalizrStyleSheet();

attachPolarisStyleSheet();
attachToastrStylesSheet();

ReactDOM.render(
  <Provider store={store}>
    <App />
  </Provider>,
  document.querySelector('#root') as HTMLElement
);
// registerServiceWorker();

Move importing stylesheets to CustomHead
Move importing stylesheets to CustomHead
