Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

187
Vistas
How do i make navbar disappear in some pages
function App() {
  return (
    <BrowserRouter>
      <Navlinks />

      <Routes>
        <Route
          render={({ location }) =>
            location.pathname !== "/" ? <Navlinks /> : true
          }
        />
        <Route path="SignUp" element={<Signup />} />
        <Route path="/" element={<Home></Home>} />
        <Route path="Lorem" element={<Lorem />} />
        <Route path="AboutUs" element={<AboutUs />} />
      </Routes>
    </BrowserRouter>
  );
}

/* <Route index element={<Home funcNav={setShowNav} />} />; */

// props.funcNav(false);

export default App;
about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0


you can use to get the path.
import { useLocation } from "react-router-dom";
let location = useLocation();

After that, you just have to check where you want to display it and where you don't.

you can create an array like this.

['path1', 'path2', 'path3'].includes(location.pathname) && ...
about 4 years ago · Juan Pablo Isaza Denunciar

0

You can add an if statement, and use the location path function, if the pathname is "bla" for example, you can print the navbar, or add a div containing the navbar, but with a hidden visibility.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda