Dev Helpers
← Back

Prefetched guide link

Place this file at components/PrefetchedGuideLink.tsx in an App Router project.

Open this example in the interactive library

Source code

// components/PrefetchedGuideLink.tsx

import Link from "next/link";

export default function PrefetchedGuideLink({
  href = "/guide",
  label = "Read guide",
}: { href?: string; label?: string } = {}) {
  return (
    <Link href={href} prefetch={true}>
      {label}
    </Link>
  );
}