App.js
function App(props) {
console.log(props, "Check Props Here");
return (
<div className="d-flex ht-pct-100">
<div className="flex-one">
<div className="flex-one main-content-box" style={{ height: "calc(100% - 55px)" }}>
<div className="arrow-navigation" style={{ top: topPosition }}></div>
<Switch>
<Route exact path="/" render={() => <DashBoard store={main} />} />
<Route exact path="/newprocess" render={() => <div>DEFG</div>} />
</Switch>
</div>
</div>
</div>
);
}
Right now when m clicking on new process it goes to new process page but when i reload the page it stays in the same page. i want to send it to "/" which is the first route. posting the question again for a proper answer. Thanks!