JSFiddle - React, Tailwind, and code Playground
by fallenreaper
JavaScript
var settings = {
url: "google.com",
type: "POST",
data: {"data":"trololololol"},
dataType: "json",
success: function(a,b,c){
//code here
},
error: function(a,b,c){
//code here
}
};
myfunction(settings, $.ajax);