Text nodes
Text nodes represent raw text content on the tree (similar to Text nodes on Web). They are not directly accessible via refs, but can be accessed using methods like childNodes on element refs.
Reference
Web-compatible API
From CharacterData:
- Properties
- Methods
From Node:
- Properties
childNodesfirstChildisConnectedlastChildnextSiblingnodeNamenodeTypenodeValueownerDocument- ℹ️ Will return the document instance where this component was rendered.
parentElementparentNodepreviousSiblingtextContent
- Methods
compareDocumentPosition()contains()getRootNode()- ℹ️ Will return a reference to itself if the component is not mounted.
hasChildNodes()