diff options
Diffstat (limited to 'src/main/js/src/index.js')
-rw-r--r-- | src/main/js/src/index.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/js/src/index.js b/src/main/js/src/index.js index 6c6043f0..d2ffe1c6 100644 --- a/src/main/js/src/index.js +++ b/src/main/js/src/index.js @@ -2,7 +2,7 @@ import 'babel-polyfill' import React from 'react' import ReactDOM from 'react-dom' -import { BrowserRouter, Match, Miss } from 'react-router' +import { Router, browserHistory, Route } from 'react-router' import { Provider } from 'react-redux' import configureStore from './store' @@ -15,12 +15,12 @@ import Error404 from './components/errors/Error404' ReactDOM.render( <Provider store={store}> - <BrowserRouter> + <Router history={browserHistory}> <div className="app"> - <Match exactly pattern="/" component={App}/> - <Miss component={Error404}/> + <Route path="/" component={App}/> + <Route path="*" component={Error404}/> </div> - </BrowserRouter> + </Router> </Provider>, document.getElementById('root') ); |