MCPcopy
hub / github.com/molefrog/wouter / LocationDisplay

Function LocationDisplay

packages/wouter/test/view-transitions.test.tsx:80–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78 const { hook } = memoryLocation({ path: "/" });
79
80 const LocationDisplay = () => {
81 const [location] = useLocation();
82 return <span data-testid="location">{location}</span>;
83 };
84
85 const { getByTestId } = render(
86 <Router hook={hook} aroundNav={aroundNav}>

Callers

nothing calls this directly

Calls 1

useLocationFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…