Docs
Components
<Link />
<Link />
The <Link /> component enables client-side navigation without triggering a full page reload.
React
import { Link } from "exta/components";
export default function () {
return <Link href="/">Go to Home</Link>;
}WARNING
Navigating to external URLs is not allowed.#Prefetch
By default, the <Link /> component pre-downloads the static data for the target page. This may lead to issues such as performance degradation and excessive network requests, so you can disable this prefetching if needed.
React
export default function () {
return (
<Link href="/" prefetch={false}>
This page will be loaded when Link clicked
</Link>
);
}#When you click
- Click the
<Link /> - Execute
props.onClick - Fetch page data
- Push