JSFiddle - React, Tailwind, and code Playground
HTML
<div id='updateMe'>Old Value</div>
<a href='#' id='test'>Test</a>
JavaScript
$(function(){
$('#test').click(function(){
$.ajax({
type: "GET",
url: '',
success: function(data) {
$('#updateMe').html('New Value');
}
});
return false;
});
});