JSFiddle - React, Tailwind, and code Playground
HTML
<div>test</div>
JavaScript
$(function(){
$('div').each(function(){
$img= $('<img>').attr('src','http://blog.irrashai.com/wp-content/uploads/2009/01/test-pilot.png');
$(this).replaceWith($img);
});
});