JSFiddle - React, Tailwind, and code Playground
HTML
<div id="weather"></div>
JavaScript
$.ajax({
url: "http://api.openweathermap.org/data/2.5/weather?q=hurghada,eg",
type: 'GET',
dataType: 'JSONP',
success: function (data) {
$('#weather').append(data.name);
$('#weather').append(' - ');
var celsius = Math.round(parseInt(data.main.temp, 10) - 273.15);
$('#weather').append(celsius + ' °C');
}
});