MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / elementTag

Function elementTag

src/resolution/frameworks/react.ts:1086–1086  ·  view source on GitHub ↗
(value: string | undefined)

Source from the content-addressed store, hash-verified

1084 };
1085 // The component an `element` shows, `Outlet` included.
1086 const elementTag = (value: string | undefined): string | undefined => componentName(value, true);
1087 // The page an `element` shows: `element={<Outlet />}` renders the route inside it and nothing of its own.
1088 const elementPage = (value: string | undefined): string | undefined => elementTag(value)?.replace(/^Outlet$/, '') || undefined;
1089 // The few characters before `at`, trailing whitespace skipped: enough for the

Callers 3

elementPageFunction · 0.85
unitFunction · 0.85
routeRenderFunction · 0.85

Calls 1

componentNameFunction · 0.85

Tested by

no test coverage detected