JSFiddle - React, Tailwind, and code Playground

JavaScript

$.ajax({
    url: "/echo/json/",
    data: {
        json: JSON.stringify({foo:'bar'}),
        delay: 1
    },
    type: "post",
    dataType: "json",
    success: function (d) {
        console.log("hrm ", d);
    }
})