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

Function ReactDOMComponent

docs/lib/react.js:6658–6678  ·  view source on GitHub ↗

* Creates a new React class that is idempotent and capable of containing other * React components. It accepts event listeners and DOM properties that are * valid according to `DOMProperty`. * * - Event listeners: `onClick`, `onMouseDown`, etc. * - DOM properties: `className`, `name`, `title`,

(element)

Source from the content-addressed store, hash-verified

6656 * @extends ReactMultiChild
6657 */
6658function ReactDOMComponent(element) {
6659 var tag = element.type;
6660 validateDangerousTag(tag);
6661 this._currentElement = element;
6662 this._tag = tag.toLowerCase();
6663 this._namespaceURI = null;
6664 this._renderedChildren = null;
6665 this._previousStyle = null;
6666 this._previousStyleCopy = null;
6667 this._nativeNode = null;
6668 this._nativeParent = null;
6669 this._rootNodeID = null;
6670 this._domID = null;
6671 this._nativeContainerInfo = null;
6672 this._wrapperState = null;
6673 this._topLevelWrapper = null;
6674 this._flags = 0;
6675 if ("development" !== 'production') {
6676 this._ancestorInfo = null;
6677 }
6678}
6679
6680ReactDOMComponent.displayName = 'ReactDOMComponent';
6681

Callers

nothing calls this directly

Calls 1

validateDangerousTagFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…