JSFiddle - React, Tailwind, and code Playground

by sushanth009

HTML

<div id="a">

</div>

CSS

#a
{
    background-color: yellow;
    width: 100px;
    height: 100px;
}

JavaScript

var script = document.createElement( 'script' );
script.type = 'text/javascript';
script.src = 'http://video.foxnews.com/v/embed.js?id=1993203907001&w=466&h=263';
document.getElementsByTagName('div')[0].appendChild(script);

//$('#a').append(script);