JSFiddle - React, Tailwind, and code Playground

HTML

<div id="div10">
     <h2>Text to be changed</h2>
</div>
<button>Get External Content</button>

JavaScript

$(document).ready(function () {
    $("button").click(function () {
        $("#div10").load("http://hs.biocanvas.net/files/replace.txt", function () {
            alert("Done Loading");
        });
    });
});