JSFiddle - React, Tailwind, and code Playground

by guanome

HTML

<div id="results"></div>

CSS

div
{
    width: 200px;
    height: 200px;
    background-color: tan;
}

JavaScript

$('#results').click(function() {
    var script = document.createElement("script");
    script.type = "text/javascript";
    script.src = "https://gist.github.com/1265374.js?file=GetGists.js";
    document.getElementById('results').appendChild(script);
    console.log('script added');
});