I have 3 main pages like
/
/signup
/dashboard #on successfull login
The problem is that after login , user will be there on dashboard page /dashboard
, The dashboard page has 2 main components
- side navigation menu
- inner Dashboard (divided the screen as two)
side nav has some links call users , organizations etc . when user clicks on that menu i want to display
/dashboard/user , /dashboard/organisations
in inner dashboard without affecting the headers and side nav My App.Js File
// Main App.js(Route file of react project)
<BrowserRouter>
<Switch>
<Route path="/" exact component={Login}/>
<Route path="/signup" exact component={Signup}/>
<PrivateRoute exact path="/dashboard" component={Dashboard}/>
</Switch>
</BrowserRouter>
How Can I do that? Any Ideas . Thanks In Advance