MCPcopy Create free account
hub / github.com/RobPruzan/react-scratch / getComponentRepr

Function getComponentRepr

src/react/core.ts:461–466  ·  view source on GitHub ↗
(internalMetadata: ReactComponentInternalMetadata)

Source from the content-addressed store, hash-verified

459 });
460
461const getComponentRepr = (internalMetadata: ReactComponentInternalMetadata) =>
462 getComponentName(internalMetadata) +
463 "-" +
464 (internalMetadata.kind === "real-element"
465 ? JSON.stringify(internalMetadata.props)
466 : "empty-slot");
467
468export const createElement = <T extends AnyProps>(
469 component: ReactComponentExternalMetadata<T>["component"],

Callers

nothing calls this directly

Calls 1

getComponentNameFunction · 0.85

Tested by

no test coverage detected