MCPcopy 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
15function createTextElement(text) {
16 return {
17 type: "TEXT_ELEMENT",
18 props: {
19 nodeValue: text,
20 children: [],
21 },
22 }
23}
24
25function createDom(fiber) {
26 const dom =

Callers 1

createElementFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected