MCPcopy Create free account
hub / github.com/Lobos/react-ui / createInternalComponent

Function createInternalComponent

docs/lib/react.js:12080–12083  ·  view source on GitHub ↗

* Get a native internal component class for a specific tag. * * @param {ReactElement} element The element to create. * @return {function} The internal class constructor function.

(element)

Source from the content-addressed store, hash-verified

12078 * @return {function} The internal class constructor function.
12079 */
12080function createInternalComponent(element) {
12081 !genericComponentClass ? "development" !== 'production' ? invariant(false, 'There is no registered component for the tag %s', element.type) : invariant(false) : void 0;
12082 return new genericComponentClass(element);
12083}
12084
12085/**
12086 * @param {ReactText} text

Callers

nothing calls this directly

Calls 1

invariantFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…