JSFiddle - React, Tailwind, and code Playground

HTML

<div id="test"></div>
<iframe id="myiframe" src="http://jsfiddle.net" style="width:300px; height:300px"></iframe>

JavaScript

$('#test').html($('<div>myhtml</div>').css({}));
$('#myiframe').contents().find('body').html($('<div>myhtml</div>'));