JSFiddle - React, Tailwind, and code Playground
by polaszk
HTML
<div id="1">
some text
<div id="2">1</div>
</div>
JavaScript
$('#1').contents()[0].nodeValue = 'new text';
by polaszk
<div id="1">
some text
<div id="2">1</div>
</div>
$('#1').contents()[0].nodeValue = 'new text';