MCPcopy
hub / github.com/untitleduico/react / isFunctionComponent

Function isFunctionComponent

utils/is-react-component.ts:10–12  ·  view source on GitHub ↗
(component: any)

Source from the content-addressed store, hash-verified

8 * Checks if a given value is a function component.
9 */
10export const isFunctionComponent = (component: any): component is React.FC<any> => {
11 return typeof component === "function";
12};
13
14/**
15 * Checks if a given value is a class component.

Callers 1

isReactComponentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected