JSFiddle - React, Tailwind, and code Playground
JavaScript
var xhr= new XMLHttpRequest();
xhr.open("GET","https://api.github.com/users")
xhr.onreadystatechange = function(){
if(xhr.readyState==4&&xhr.status==200){
var ap = JSON.parse(xhr.responseText);
console.log(ap);
$("#avatar").attr("src",ap.avatar_url);
$("#avatar").addClass("styleImg");
$('#userName').html(ap.login);
$('#createAccount').html("Acount created on -"+ ap.created_at);
}
}
xhr.send()
}