JSFiddle - React, Tailwind, and code Playground

by chovy

HTML

<div id="test"></div>

JavaScript

$.get("/proxy", function(htm){
   var html = $(htm),
       fragment = html.find("div#something"),
       styles = html.find("head link[rel=stylesheet]");
   
    for (var i=0, l=styles.length; i<l; i++ ){
      $("html head").append(styles[i]);   
    }
    
   $("#test").html( fragment ); 
});