React history.push() is updating url but not navigating to it in browser
You shouldn’t need to downgrade to v3, React-Router 4.0.0 is totally capable of accomplishing what the OP asked for. const history = createBrowserHistory(); is a custom history object so you should use <Router> to synchronize it with react-router instead of <BrowserRouter>, which is what I assumed you were using. Try this instead: import React, {Component} … Read more