MCPcopy Create free account
hub / github.com/BetaSu/big-react / isValidElement

Function isValidElement

packages/react/src/jsx.ts:30–36  ·  view source on GitHub ↗
(object: any)

Source from the content-addressed store, hash-verified

28};
29
30export function isValidElement(object: any) {
31 return (
32 typeof object === 'object' &&
33 object !== null &&
34 object.$$typeof === REACT_ELEMENT_TYPE
35 );
36}
37
38export const createElement = (
39 type: ElementType,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected