JSFiddle - React, Tailwind, and code Playground

JavaScript 1.7

const cityAPI = 'https://www.mocky.io/v2/5a945fa435000074009b0e78';
const weatherAPI = 'https://www.mocky.io/v2/5a947dfa35000072009b0eb9?city=';

async function app() {
    const city = await fetch(cityAPI).then(r => r.json());
    const weather = await fetch(weatherAPI+city.name).then(r => r.json());
    console.log(city.name);
    console.log(weather.temp + weather.unit);
}

app();