I have a website, the header with the router function is on the "/" and I want to use another new header in the dashboard. So I want the header to be available to normal people on all pages, but in the dashboard it is invisible and another header is in the dashboard.
The Function:
<Route path='/' component={HeaderComponent} />
You may created nested routes for
<Route exact path='/'>
<Header/>
// Other components or Routes
</Route>
<Route exact path='/dashboard'>
<DashboardHeader/>
// Other components or Routes
</Route>