JSFiddle - React, Tailwind, and code Playground
JavaScript
(function(xhr) {
var open = xhr.prototype.open;
var send = xhr.prototype.send;
xhr.prototype.open = function(method, url, asy, user, password) {
console.log(method);
open.call(this, method, url, asy, user, password);
}
xhr.prototype.send = function(data) {
console.log(data);
send.call(this);
}
})(XMLHttpRequest);