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

Function content

src/resolution/frameworks/react.ts:1080–1080  ·  view source on GitHub ↗
(t: string)

Source from the content-addressed store, hash-verified

1078 if (!/^<\s*[A-Z]/.test(inner)) return undefined;
1079 const { own, props } = elementTags(inner);
1080 const content = (t: string): boolean => !WRAPPER.test(t) && t !== 'Outlet';
1081 // Then a page handed to a guard as a prop (`<PrivateRoute component={<Profile />} />`),
1082 // then the innermost wrapper: `<RequireAuth><Outlet /></RequireAuth>` renders the guard.
1083 return own.find(content) ?? props.find(content) ?? [...own].reverse().find((t) => t !== 'Outlet') ?? own[0];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected