JSFiddle - React, Tailwind, and code Playground

by electronoob

JavaScript

//get githup repo list

let xhr = new XMLHttpRequest()
let url = "https://api.github.com/users/electronoob/repos";
xhr.onreadystatechange = function (data) {
  if(xhr.readyState === 4 && xhr.status === 200) {
    console.log(xhr.responseText.length);
  }
}
xhr.open('GET', url)
xhr.send();