@@ -5,6 +5,8 @@ description: Enable fast client-side navigation with the built-in `next/link` co
...
@@ -5,6 +5,8 @@ description: Enable fast client-side navigation with the built-in `next/link` co
{/* The content of this doc is shared between the app and pages router. You can use the `<PagesOnly>Content</PagesOnly>` component to add content that is specific to the Pages Router. Any shared content should not be wrapped in a component. */}
{/* The content of this doc is shared between the app and pages router. You can use the `<PagesOnly>Content</PagesOnly>` component to add content that is specific to the Pages Router. Any shared content should not be wrapped in a component. */}
<PagesOnly>
<details>
<details>
<summary>Examples</summary>
<summary>Examples</summary>
...
@@ -13,6 +15,8 @@ description: Enable fast client-side navigation with the built-in `next/link` co
...
@@ -13,6 +15,8 @@ description: Enable fast client-side navigation with the built-in `next/link` co
</details>
</details>
</PagesOnly>
`<Link>` is a React component that extends the HTML `<a>` element to provide [prefetching](/docs/app/building-your-application/routing/linking-and-navigating#1-prefetching) and client-side navigation between routes. It is the primary way to navigate between routes in Next.js.
`<Link>` is a React component that extends the HTML `<a>` element to provide [prefetching](/docs/app/building-your-application/routing/linking-and-navigating#1-prefetching) and client-side navigation between routes. It is the primary way to navigate between routes in Next.js.