JSFiddle - React, Tailwind, and code Playground
HTML
<div id="result">ajax result goes here</div>
CSS
strong { font-size: 1.2em; font-weight: bold}
JavaScript
$.ajax({
url: '/ajax_html_echo/',
type: 'POST',
data: {html:'This is some data we received in <strong>HTML!</strong>'},
dataType: 'html',
success: function(data) {
$("#result").html(data);
}
});