JSFiddle - React, Tailwind, and code Playground

JavaScript

var txt = document.createTextNode("foo");
document.body.appendChild(txt);
txt.data = 'Hello';