useLinkClickHandler

external fun <E : Element> useLinkClickHandler(to: To, options: UseLinkClickHandlerOptions = definedExternally): (event: MouseEvent<E, MouseEvent>) -> Unit(source)

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>.