Estou usando:
"react-router": "^4.3.1",
e ao aplicar as alterações no index.js
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import Login from './componentes/Login';
import registerServiceWorker from './registerServiceWorker';
import {Router, Route, browserHistory} from 'react-router';
ReactDOM.render(
(
<Router history = {browserHistory}>
<Route path="/" component={Login}/>
<Route path="/timeline" component={App}/>
</Router>
)
, document.getElementById('root'));
registerServiceWorker();
Ele apresenta o seguinte erro:
Failed to compile
./src/index.js
12:15-29 'react-router' does not contain an export named 'browserHistory'.
Verifiquei e parece que a versão 4 não tem o browserHistory, o que fazer ?