I am new to ReactJs. This is my code:
var React = require(\'react\');
var ReactDOM = require(\'react-dom\');
var {Route, Router, IndexRoute, hashHistory} = requ
Version 4 of React Router changed several things. They made separate top level router elements for the different history types. If you're using version 4 you should be able to replace <Router history={hashHistory}>
with <HashRouter>
or <BrowserRouter>
.
For more detail, see https://reacttraining.com/react-router/web/guides