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

Function useHref

packages/react-aria-components/test/Link.test.js:203–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201 it('should work with RouterProvider', async () => {
202 let navigate = jest.fn();
203 let useHref = href => '/base' + href;
204 let {getByRole} = render(
205 <RouterProvider navigate={navigate} useHref={useHref}>
206 <Link href="/foo" routerOptions={{foo: 'bar'}}>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected