JSFiddle - React, Tailwind, and code Playground
HTML
<div id="to_load"></div> hi there
CSS
#to_load {
width: 523px;
height: 192px;
}
#to_load img {
display: none;
}
JavaScript
setTimeout(function() {
$("<img />", { src:"http://ejohn.org/apps/workshop/adv-talk/jquery_logo.png"})
.on('load', function(){
$(this).appendTo("#to_load").fadeIn(500);
});
},1000);