content: import 'babel-polyfill'
  import React from 'react'
  import { render } from 'react-dom'
  import { createStore, applyMiddleware } from 'redux'
  import { Provider } from 'react-redux'
  import createLogger from 'redux-logger'
  import thunkMiddleware from 'redux-thunk'
  
  import App from './components/App'
  import Home from './scenes/Home'
  import rootReducer from './reducers'
  
  import { fetchPromotions } from './actions'
  
  const loggerMiddleware = createLogger()
  const store = createStore(rootReducer, applyMiddleware(thunkMiddleware, loggerMiddleware))
  
  store.dispatch(fetchPromotions())
    .then(() => console.log(store.getState()))
  
  render(
    <Provider store={store}>
      <App>
        <Home />
      </App>
    </Provider>
    ,
    document.getElementById('root')
  )
  