Link component is used to navigate between routes. Because it renders an underlying
<a> element, all properties available to the
<a> element are also available to the
Link component. For more information, refer to the
<a> element documentation.
Example codeAnchor link to section titled "Example code"
||The destination URL that the link points to. This is the
||Whether to update the state object or URL of the current history entry. Refer to the history.replaceState documentation.|
||The custom client state with the navigation.|
||Whether to reload the whole document on navigation.|
||Whether to prefetch the link source when the user signals intent. Defaults to
Component typeAnchor link to section titled "Component type"
Link component is a client component, which means that it renders on the client. For more information about component types, refer to React Server Components.