JSFiddle - React, Tailwind, and code Playground
JavaScript
if (XHRObj !== null) {
XHRObj.destroy();
XHRObj = null;
}
XHRObj = new XMLHttpRequest()
if (XHRObj !== null) {
XHRObj.destroy();
XHRObj = null;
}
XHRObj = new XMLHttpRequest()