Closed dfilatov closed 8 years ago
Currently textContent property is always used in corresponding patch operation to update text. In case of update previous text node, nodeValue property can be used to increase performance.
textContent
nodeValue
const firstChild = domNode.firstChild; if(firstChild) { firstChild.nodeValue = newText; } else { domNode.textContent = newText; }
Currently
textContent
property is always used in corresponding patch operation to update text. In case of update previous text node,nodeValue
property can be used to increase performance.