Components

Link component

Link provides anchor navigation with client transitions for eligible internal destinations. Prefetch controls advance loading, not authorization or cache freshness. The App Router can opt out with prefetch=false. Rewrites may require specifying both display and prefetch destinations. Use semantic link labels. Source: https://nextjs.org/docs/app/api-reference/components/link. Documentation-reviewed illustrative draft; installed declarations and runtime not verified.

Formal Syntax & Structure

nextjs syntaxnextjs
import Link from "next/link"

Working Example

Example Snippetnextjs
import Link from 'next/link';export default function CatalogLink() { return <Link href='/catalog' prefetch={false}>Browse books</Link>;}
Next.js Reference