MCPcopy Create free account
hub / github.com/adobe/react-spectrum / openSyntheticLink

Function openSyntheticLink

packages/react-aria/src/utils/openLink.tsx:171–173  ·  view source on GitHub ↗
(target: Element, modifiers: Modifiers)

Source from the content-addressed store, hash-verified

169}
170
171function openSyntheticLink(target: Element, modifiers: Modifiers) {
172 getSyntheticLink(target, link => openLink(link, modifiers));
173}
174
175export function useSyntheticLinkProps(props: LinkDOMProps): DOMAttributes<HTMLElement> {
176 let router = useRouter();

Callers

nothing calls this directly

Calls 2

getSyntheticLinkFunction · 0.85
openLinkFunction · 0.85

Tested by

no test coverage detected