Skip to main content

useLinkClickHandler

useLinkClickHandler<E>(to: To,__namedParameters: ): 

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

Properties

(Mandatory properties are in bold)
PropertiesTypeDescription
toTo
Additional properties for advanced use cases
PropertiesTypeDescription
preventScrollResetboolean
relativeRelativeRoutingType
replaceboolean
stateany
targetHTMLAttributeAnchorTarget