MCPcopy Create free account
hub / github.com/caseywebdev/react-list / ReactElement

Function ReactElement

docs/index.js:119–128  ·  view source on GitHub ↗
(type, key, self, source, owner, props)

Source from the content-addressed store, hash-verified

117 ReactSharedInternals = { H: null, A: null, T: null, S: null },
118 hasOwnProperty = Object.prototype.hasOwnProperty;
119function ReactElement(type, key, self, source, owner, props) {
120 self = props.ref;
121 return {
122 $$typeof: REACT_ELEMENT_TYPE,
123 type: type,
124 key: key,
125 ref: void 0 !== self ? self : null,
126 props: props
127 };
128}
129function cloneAndReplaceKey(oldElement, newKey) {
130 return ReactElement(
131 oldElement.type,

Callers 3

cloneAndReplaceKeyFunction · 0.85
index.jsFile · 0.85
jsxDEVImplFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…