isMatchingRootContainer() — react Function Reference
Architecture documentation for the isMatchingRootContainer() function in DOMPluginEventSystem.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 62765604_288e_f718_3f66_b0251d559664["isMatchingRootContainer()"] 816b54e5_c63c_f8b2_68e8_0c637e281f03["DOMPluginEventSystem.js"] 62765604_288e_f718_3f66_b0251d559664 -->|defined in| 816b54e5_c63c_f8b2_68e8_0c637e281f03 1be3a0b7_80ec_6d97_2d85_4a67f64ff80b["dispatchEventForPluginEventSystem()"] 1be3a0b7_80ec_6d97_2d85_4a67f64ff80b -->|calls| 62765604_288e_f718_3f66_b0251d559664 style 62765604_288e_f718_3f66_b0251d559664 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-dom-bindings/src/events/DOMPluginEventSystem.js lines 572–582
function isMatchingRootContainer(
grandContainer: Element,
targetContainer: EventTarget,
): boolean {
return (
grandContainer === targetContainer ||
(!disableCommentsAsDOMContainers &&
grandContainer.nodeType === COMMENT_NODE &&
grandContainer.parentNode === targetContainer)
);
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does isMatchingRootContainer() do?
isMatchingRootContainer() is a function in the react codebase, defined in packages/react-dom-bindings/src/events/DOMPluginEventSystem.js.
Where is isMatchingRootContainer() defined?
isMatchingRootContainer() is defined in packages/react-dom-bindings/src/events/DOMPluginEventSystem.js at line 572.
What calls isMatchingRootContainer()?
isMatchingRootContainer() is called by 1 function(s): dispatchEventForPluginEventSystem.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free