JSFiddle - React, Tailwind, and code Playground
HTML
will be replaced when data is recieved
JavaScript
dojo.xhrPost({
url: "/echo/jsonp/", //this would point to your jsp file that outputs JSON
handleAs: "json",
load: function(data) {
document.body.innerHTML = 'data recieved';
}
});