score:0

You can add NavigationBar in the specific components rather than app.js. So for example if there is a about page, place NavigationBar on top of the component

score:2

What about just rendering it as another route?

<Route path={['/explore', '/explore/:id', '/']} exact component={Navigation} />

It will not be rendered if the route does not match any of the routes listed in the path array.


Related Query

More Query from same tag