MCPcopy
hub / github.com/wojtekmaj/react-lifecycle-methods-diagram / isMethod

Function isMethod

src/shared/utils.ts:18–22  ·  view source on GitHub ↗
(
  child: React.ReactElement,
)

Source from the content-addressed store, hash-verified

16}
17
18export function isMethod(
19 child: React.ReactElement,
20): child is React.ReactElement<{ col?: number; colspan?: number; row?: number }> {
21 return child.type === Method;
22}
23
24export function isSubsection(
25 child: React.ReactElement,

Callers 1

autoFillPropsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected