JSFiddle - React, Tailwind, and code Playground
HTML
<span id="source"...
JavaScript
var image = new Image();
//Just getting the source from the span. It was messy in JS.
image.src = document.getElementById('source').innerHTML;
document.body.appendChild(image);