JSFiddle - React, Tailwind, and code Playground
by grant
JavaScript
url = "https://randomuser.me/api"
function getData(url, cb) {
fetch(url)
let data = {}
.then(response => response.json())
.then(result => cb(result));
}
getData(url, data )
console.log( data.results[0].cell )