JSFiddle - React, Tailwind, and code Playground

JavaScript

var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
    if (this.readyState == 4 && this.status == 200) {
        handleData(JSON.parse(xhttp.responseText));
    }
};
xhttp.open("GET", "https://api.myjson.com/bins/176t5e", true);
xhttp.send();


let handleData = (hairdressers) => {

    document.body.innerHTML = JSON.stringify(hairdressers);
}