Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/pomber/didact
/ createTextElement
Function
createTextElement
didact.js:15–23 ·
view source on GitHub ↗
(text)
Source
from the content-addressed store, hash-verified
13
}
14
15
function
createTextElement(text) {
16
return
{
17
type
:
"TEXT_ELEMENT"
,
18
props: {
19
nodeValue: text,
20
children: [],
21
},
22
}
23
}
24
25
function
createDom(fiber) {
26
const
dom =
Callers
1
createElement
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected