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
childNodes
firstChild
isConnected
lastChild
nextSibling
nodeName
nodeType
nodeValue
ownerDocument
- ℹ️ Will return the document instance where this component was rendered.
parentElement
parentNode
previousSibling
textContent
- Methods
compareDocumentPosition()
contains()
getRootNode()
- ℹ️ Will return a reference to itself if the component is not mounted.
hasChildNodes()