Implemented react-router-dom v4

This commit is contained in:
Keven van Zuijlen
2017-03-28 14:21:25 +02:00
committed by Steve Sanderson
parent 7a11cf97fd
commit d2c56d19d0
4 changed files with 17 additions and 17 deletions

View File

@@ -2,12 +2,12 @@ import './css/site.css';
import 'bootstrap';
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { browserHistory, Router } from 'react-router';
import { BrowserRouter as Router } from 'react-router-dom';
import routes from './routes';
// This code starts up the React app when it runs in a browser. It sets up the routing configuration
// and injects the app into a DOM element.
ReactDOM.render(
<Router history={ browserHistory } children={ routes } />,
<Router children={ routes } />,
document.getElementById('react-app')
);