I am writing a React app with multiple routes, I have header and footer components as well which will be visible on all components. But now I want to hide footer component for a specific route.
<Header />
<Switch>
<Route path={routes.home} exact component={Home} />
<Route path={routes.office} component={Office} />
<Route path={routes.park} exact component={Park} />
...
...
...
<Route path={routes.shopping} component={Shopping} />
</Switch>
<Footer />
so header and footer component are always rendered. But now I want footer component visible for all routes except shopping, how can I do that?