score:2

Accepted answer
import { BrowserRouter } from 'react-router';

score:0

import createHistory from "history/createBrowserHistory"

const browserHistory = createHistory()
export { browserHistory };

score:0

function Header(props) {
 // props.history and props.location are available now inside this component
}

Related Query

More Query from same tag