JSFiddle - React, Tailwind, and code Playground
JavaScript 1.7
const cityAPI = 'https://www.mocky.io/v2/5a945fa435000074009b0e78';
async function app(){
const city1Request = fetch(cityAPI).then(r => r.json());
const city2Request = fetch(cityAPI).then(r => r.json());
const [city1, city2] = await Promise.all([city1Request, city2Request]);;
console.log(city1.name);
console.log(city2.name);
}
app();