MCPcopy Create free account
hub / github.com/QuarkGluonPlasma/react-course-code / createTextNode

Function createTextNode

mini-react/src/mini-react.js:15–23  ·  view source on GitHub ↗
(nodeValue)

Source from the content-addressed store, hash-verified

13 }
14
15 function createTextNode(nodeValue) {
16 return {
17 type: "TEXT_ELEMENT",
18 props: {
19 nodeValue,
20 children: []
21 },
22 };
23 }
24
25 let nextUnitOfWork = null
26 let wipRoot = null

Callers 1

createElementFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected