createTextNode is
document.createTextNode,
pre-bound to document. The export itself is undefined when there
is no document (non-browser environment). Part of
pota/use/dom.
| Argument | Type | Description |
|---|---|---|
data |
string |
The text content of the new text node. |
Returns: Text — the newly created text node.