JSFiddle - React, Tailwind, and code Playground

HTML

<iframe id="myIframe"></div>

JavaScript

var html = '<img src="http://www.google.fr/logos/2011/Louis_Daguerre-2011-hp.jpg" alt="image" />';


$('#myIframe').contents().find('body').html(html);