Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

useLinkClickHandler

Handles the click behavior for router <Link> components. This is useful if you need to create custom <Link> components with the same click behavior we use in our exported <Link>.

function useLinkClickHandler<E extends Element = HTMLAnchorElement>(to: To, { target, replace: replaceProp, state, preventScrollReset, relative }?: {
replace?: boolean;
state?: any;
preventScrollReset?: boolean;
relative?: RelativeRoutingType;
}
): (event: React.MouseEvent<E, MouseEvent>) => void;
§
useLinkClickHandler<E extends Element = HTMLAnchorElement>(to: To, { target, replace: replaceProp, state, preventScrollReset, relative }?: {
replace?: boolean;
state?: any;
preventScrollReset?: boolean;
relative?: RelativeRoutingType;
}
): (event: React.MouseEvent<E, MouseEvent>) => void
[src]

§Type Parameters

§
E extends Element = HTMLAnchorElement
[src]

§Parameters

§
{ target, replace: replaceProp, state, preventScrollReset, relative }?: {
replace?: boolean;
state?: any;
preventScrollReset?: boolean;
relative?: RelativeRoutingType;
}
optional
[src]

§Return Type

§
(event: React.MouseEvent<E, MouseEvent>) => void
[src]