JSFiddle - React, Tailwind, and code Playground
JavaScript
$.ajaxSetup({
type: "POST",
contentType: "application/json; charset=utf-8",
dataType: "json"
});
$(function () {
//Content type will be included under jQuery 1.4, but
//not under 1.5
$.ajax({
url: "/echo/json/",
type: "POST",
data: undefined,
success: function() {
}
});
});