JSFiddle - React, Tailwind, and code Playground

HTML

<div id="content"></div>

JavaScript

$(function() {
    $.ajax({
        url: '/echo/html/',
        data: {
            html: "<script>alert('hello');<\/script><p>Request Successfull</p>",
            delay: 1
        },
        type: 'POST',
        success: function(data) {
            //document.getElementById("content").innerHTML = data; //won't work
            $("#content").append(data);
        }
    });
});