useLinkClickHandler
react-router

useLinkClickHandler

useLinkClickHandler<E = HTMLAnchorElement>(to, props): {  }

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

Parameters

  • to: To
  • props: { preventScrollReset: boolean, relative: RelativeRoutingType, replace: boolean, state: any, target: HTMLAttributeAnchorTarget, viewTransition: boolean, }
Docs and examples CC 4.0