I'm kinda new to Electron and I'm using the React template (since I do know that framework), I'm trying to navigate between 2 components, Homepage and Login page, usually I've been used to do something like this:
<Router>
<Switch>
<Route path="/" exact component={Home} />
<Route path="/Login" exact component={Login} />
</Switch>
</Router>
But in electron it doesn't render any component, I do only get the background, even if I kill or reload the app.
How can I solve? are there any files that I can add to hep you?
Thanks for any help.
question from:
https://stackoverflow.com/questions/65926857/how-to-navigate-between-pages-using-electron-and-react 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…