Skip to content

Instantly share code, notes, and snippets.

@kocisov
Created March 15, 2017 21:03
Show Gist options
  • Save kocisov/c26612fcaba41eda3ad923eef58f5a69 to your computer and use it in GitHub Desktop.
Save kocisov/c26612fcaba41eda3ad923eef58f5a69 to your computer and use it in GitHub Desktop.
Entry file
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