Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

Commit

Permalink
fix(src/client/index): use isomorphic-fetch instead of whatwg-fetch, …
Browse files Browse the repository at this point in the history
…add es6-promise polyfill, configureRootComponent arg fix
  • Loading branch information
Metnew committed Aug 4, 2017
1 parent cdfaf58 commit 275d37f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/client/index.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// Styles
import 'semantic-ui-css/semantic.css'
import 'styles/global'
// fetch polyfill
import 'whatwg-fetch'
// fetch and promise polyfill
import 'isomorphic-fetch'
import 'es6-promise'
// Application
import {render} from 'react-dom'
import {configureStore, configureRootComponent} from 'common/index.jsx'
Expand All @@ -21,7 +22,7 @@ const preloadedState = window.__PRELOADED_STATE__ || {}
delete window.__PRELOADED_STATE__

const store = configureStore(preloadedState)
const RootComponent = configureRootComponent(store)
const RootComponent = configureRootComponent({store})
render(RootComponent, document.getElementById('app'))

if (module.hot) {
Expand Down

0 comments on commit 275d37f

Please sign in to comment.