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

88
Vistas
NextLinkProps specific functionality

I am learning NextLinkProps these days, so I am wondering for the following code, please help me explain next/link's LinkProps build-in function? href={href} means props, that all the links receives href props, but I don't get what does it really mean that all links receive href property. I think I was just confused by the idea of href as props, I mean link is just a link right, people click it, so what is this href property can do with it besides take us to a site? i wish there is an example to show it, it is just a bit abstract. As for {...props}, yeah I get that a tag would receive all the props, if so, why not put {href} also in a tag ?

const Link: React.FC<NextLinkProps & { className?: string }> = ({
  href,
  children,
  ...props
}) => {
  return (
    <NextLink href={href}>
      <a {...props}>{children}</a>
    </NextLink>
  );
};
about 4 years ago · Santiago Gelvez
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