MCPcopy
hub / github.com/facebook/react / jsxDEV

Function jsxDEV

packages/react/src/jsx/ReactJSXElement.js:407–425  ·  view source on GitHub ↗
(type, config, maybeKey, isStaticChildren)

Source from the content-addressed store, hash-verified

405 * @param {string} key
406 */
407export function jsxDEV(type, config, maybeKey, isStaticChildren) {
408 const trackActualOwner =
409 __DEV__ &&
410 ReactSharedInternals.recentlyCreatedOwnerStacks++ < ownerStackLimit;
411 return jsxDEVImpl(
412 type,
413 config,
414 maybeKey,
415 isStaticChildren,
416 __DEV__ &&
417 (trackActualOwner
418 ? Error('react-stack-top-frame')
419 : unknownOwnerDebugStack),
420 __DEV__ &&
421 (trackActualOwner
422 ? createTask(getTaskName(type))
423 : unknownOwnerDebugTask),
424 );
425}
426
427function jsxDEVImpl(
428 type,

Callers

nothing calls this directly

Calls 3

jsxDEVImplFunction · 0.85
createTaskFunction · 0.85
getTaskNameFunction · 0.85

Tested by

no test coverage detected