JSFiddle - React, Tailwind, and code Playground
HTML
<h1>My page</h1>
<div id="mydiv">
<h2>This div is updated</h2>
</div>
<div>
<a href="#">Update the div!</a>
</div>
JavaScript
$(function() {
$('a').click(function() {
$.get('http://echo.jsontest.com/Hello/world', function(data) {
$('#mydiv').html(data['Hello']);
});
});
});