I am creating my first react app in electron (my first electron app too). I have two routes & need to navigate from one to another. For that I am using following code:>
In react-router v4 initialize router as constant config and access the history through this.props
in child components.
import { Route, Router } from "react-router";
import { createBrowserHistory } from "history";
const history = createBrowserHistory();
const routes = (
)
class App extends Component {
render() {
return (