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

Function ReactElement

packages/react/src/jsx.ts:13–28  ·  view source on GitHub ↗
(
	type: Type,
	key: Key,
	ref: Ref,
	props: Props
)

Source from the content-addressed store, hash-verified

11// ReactElement
12
13const ReactElement = function (
14 type: Type,
15 key: Key,
16 ref: Ref,
17 props: Props
18): ReactElementType {
19 const element = {
20 $$typeof: REACT_ELEMENT_TYPE,
21 type,
22 key,
23 ref,
24 props,
25 __mark: 'KaSong'
26 };
27 return element;
28};
29
30export function isValidElement(object: any) {
31 return (

Callers 2

createElementFunction · 0.85
jsxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected