JSFiddle - React, Tailwind, and code Playground
JavaScript
var xhr = new XMLHttpRequest();
xhr.open('GET', 'path/to/json.json');
xhr.send();
xhr.onreadystatechange = function(event){
if (xhr.readyState === 4) {
console.log(xhr.responseText);
}
};