JSFiddle - React, Tailwind, and code Playground

by Michael Russell

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';
    }
});