diff options
Diffstat (limited to 'frontend/src/index.js')
-rw-r--r-- | frontend/src/index.js | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/frontend/src/index.js b/frontend/src/index.js index 17076de5..2dc2442c 100644 --- a/frontend/src/index.js +++ b/frontend/src/index.js @@ -2,19 +2,23 @@ import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; +import { ConnectedRouter } from 'react-router-redux'; +import { Route, Switch } from 'react-router'; import { Provider } from 'react-redux'; -import { Router } from 'react-router'; import './global-styles.css'; -import { routes } from './routes'; import configureStore from './store'; - +import HomePage from './containers/home'; const initialState = {}; const { store, history } = configureStore(initialState); ReactDOM.render( <Provider store={store}> - <Router history={history} routes={routes} /> + <ConnectedRouter history={history}> + <Switch> + <Route path="/" component={HomePage} /> + </Switch> + </ConnectedRouter> </Provider>, document.getElementById('root') ); |