JSFiddle - React, Tailwind, and code Playground

HTML

<div id="output"></div>

JavaScript

var name = "Joe";

document.getElementById("output").innerHTML = name.toSource();