GetRootNodeTextOnly() — react Function Reference
Architecture documentation for the GetRootNodeTextOnly() function in TextNodesCase.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 1d64bc87_725a_5144_50b5_78602de55864["GetRootNodeTextOnly()"] f361f511_643d_fef8_84d3_4e38e9129616["TextNodesCase.js"] 1d64bc87_725a_5144_50b5_78602de55864 -->|defined in| f361f511_643d_fef8_84d3_4e38e9129616 style 1d64bc87_725a_5144_50b5_78602de55864 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
fixtures/dom/src/components/fixtures/fragment-refs/TextNodesCase.js lines 380–400
function GetRootNodeTextOnly() {
return (
<TestCase title="getRootNode - Text Only">
<TestCase.Steps>
<li>Click the "Get Root Node" button</li>
</TestCase.Steps>
<TestCase.ExpectedResult>
getRootNode should return the root of the DOM tree containing the
fragment's text content. For a fragment in the main document, this
should return the Document node.
</TestCase.ExpectedResult>
<Fixture>
<Fixture.Controls>
<GetRootNodeFragmentContainer>
This fragment contains only text. getRootNode returns the document.
</GetRootNodeFragmentContainer>
</Fixture.Controls>
</Fixture>
</TestCase>
);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does GetRootNodeTextOnly() do?
GetRootNodeTextOnly() is a function in the react codebase, defined in fixtures/dom/src/components/fixtures/fragment-refs/TextNodesCase.js.
Where is GetRootNodeTextOnly() defined?
GetRootNodeTextOnly() is defined in fixtures/dom/src/components/fixtures/fragment-refs/TextNodesCase.js at line 380.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free