JSFiddle - React, Tailwind, and code Playground
JavaScript
function ajax(a,b,c){
c=new XMLHttpRequest;
c.open('GET',a);
c.onload=b;
c.send()
}
function alertTxt(){
alert(this.response)
}
ajax('hello.txt',alertTxt)
function ajax(a,b,c){
c=new XMLHttpRequest;
c.open('GET',a);
c.onload=b;
c.send()
}
function alertTxt(){
alert(this.response)
}
ajax('hello.txt',alertTxt)