content: import 'semantic/dist/semantic'
  import 'velocity-animate'
  import 'velocity-animate/velocity.ui'
  
  import React from 'react'
  import {render} from 'react-dom'
  import {Router} from 'react-router'
  import {Provider} from 'react-redux'
  import store from 'store'
  import routes from './config/routes'
  import {load} from 'reducers/auth'
  import {dismissFlash} from 'reducers/flash'
  import storage from 'tools/storage'
  import {browserHistoryWithPlugins} from './config/browserHistory'
  
  require('semantic/dist/semantic.css')
  require('./globals.scss')
  
  /**
   * Restore authenticate state from local storage when loading application
   */
  const token = storage.get('token')
  if (token) store.dispatch(load(token))
  
  render((
    // Provider component is passing the store down the tree via React Context API
    <Provider store={store}>
      <Router history={browserHistoryWithPlugins} routes={routes} onUpdate={() => {
        // clear messages on top of the screen when updating route
        store.dispatch(dismissFlash())
      }} />
    </Provider>
  ), document.querySelector('#root'))
  