Created
March 15, 2017 21:03
-
-
Save kocisov/c26612fcaba41eda3ad923eef58f5a69 to your computer and use it in GitHub Desktop.
Entry file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import { render } from 'react-dom' | |
import { Provider } from 'react-redux' | |
import { syncHistoryWithStore } from 'react-router-redux' | |
import store from './store' | |
import { | |
Router, | |
Route, | |
IndexRoute, | |
browserHistory | |
} from 'react-router' | |
import App from './containers/App' | |
import Home from './containers/Home' | |
import './static/normalize.css' | |
import './static/index.css' | |
const history = syncHistoryWithStore(browserHistory, store) | |
render(( | |
<Provider store={store}> | |
<Router history={history}> | |
<Route path="/" component={App}> | |
<IndexRoute component={Home} /> | |
{/* Your routes here */} | |
</Route> | |
</Router> | |
</Provider> | |
), document.getElementById('root')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment