0
My App.jsx has a Browserrouter with Nav, Footer and between them the Routes, but I want a /admin that does not render the Nav and Footer. But necessarily when I add /admin to the Routes it pulls Nav and Footer. Someone can help me
App.jsx:
export default props =>
<BrowserRouter>
<div className="app">
<Nav />
<Routes />
<Footer />
</div>
</BrowserRouter>
Router.js
export default props =>
<Switch>
<Route exact path='/' component={Home} />
<Route path='/noticias/' component={Noticias} />
<Route path='/produtos/' component={Produtos} />
<Route path='/academicos/' component={Academicos} />
<Route path='/login/professores/' component={LoginProfessores} />
<Redirect from='*' to='/' />
</Switch>
vc utiliza state in App.jsx? (I got a way using state and context)
– JeffersonCarlosBD
only that the way I managed, does not render Nav and footer when leaving /admin
– JeffersonCarlosBD