JSFiddle - React, Tailwind, and code Playground

HTML

<div id="output"></div>hello.

JavaScript

jQuery(function($) {
    //
    $('#output').html('script here<'+'script>alert("hi")</s' + 'cript>')
    //
    $('<div>another script here<'+'script>(function(){ alert("okay"); })()</s' + 'cript></div>').appendTo('body')
});