score:0

<Route path="students">
// Wrap the routes/pages with header and sidebar
</Route>
<Route path="detail">
// Wrap the routes/pages without header and sidebar
</Route>

score:0

<Route exact path="\">
 login screen
</Route>
<Route>
 <Header />
 <sidebar />
 <Switch>
  <Route path="students" />
  <Route path="info" />
  ...
 </Switch>
</Route>

Related Query

More Query from same tag