Variable: HandleLinkPressFeature

• Const HandleLinkPressFeature: FeatureClass<LinkPressOptions, { onDOMLinkPress: PropDefinition<"onDOMLinkPress", (t: LinkPressTarget) => void> }>

This feature provides onDOMLinkPress prop with payloads of type LinkPressTarget. It will intercept clicks on anchors such as:

<a href="https://domain.com/">Let's Travel</a>

remarks By default, it will prevent the click from propagating. But you can disable this option, see LinkPressOptions.

If you need to intercept click on hash fragments, consider HandleHashChangeFeature instead.