JSFiddle - React, Tailwind, and code Playground
JavaScript
var callback = function(){
$(document).ready(function(){
console.log('jquery');
});
}
if( typeof jQuery === 'undefined' ){
var scr = document.createElement('script');
scr.src = 'http://code.jquery.com/jquery-latest.min.js';
document.getElementsByTagName('head')[0].appendChild(scr);
var timer = setInterval(function(){
if( typeof jQuery !== 'undefined' ){
clearInterval(timer);
callback();
}
},100);
}