JSFiddle - React, Tailwind, and code Playground

HTML

<script type='text/javascript'>

function scriptReady(){
    $(document).ready(function(){
        alert('hi');
    });
}
function loa_j(){
 if (typeof jQuery === "undefined") {
 var newscript = document.createElement('script');
 newscript.type = 'text/javascript';
 newscript.async = true;
 newscript.src = 'http://code.jquery.com/jquery-latest.min.js';
 (document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(newscript);
     
 }else{
     clearTimeout(interval);
    scriptReady();     
 }

}

var interval = setInterval(loa_j,1000);


</script>