import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import { browserHistory as history, Router } from 'react-router' import { syncReduxAndRouter } from 'redux-simple-router' import createRoutes from 'app/routes' import createStore from 'app/store' import fetchElement from 'app/util/fetch-element' if (process.env.NODE_ENV === 'development') { var DevTools = require('app/util/dev-tools').default } const store = createStore(window.__data, history) const main = ( { createRoutes(store) } ) render( { main } , document.querySelector('main') ) if (process.env.NODE_ENV === 'development') { render(
{ main }
, document.querySelector('main') ) }