JSFiddle - React, Tailwind, and code Playground
by kthornbloom
HTML
<div id="thing">
</div>
JavaScript
var imgSrc = "https://picsum.photos/id/237/200/300";
var newHTML = '<img src="'+imgSrc+'"/>';
thing.innerHTML = newHTML;
by kthornbloom
<div id="thing">
</div>
var imgSrc = "https://picsum.photos/id/237/200/300";
var newHTML = '<img src="'+imgSrc+'"/>';
thing.innerHTML = newHTML;