JSFiddle - React, Tailwind, and code Playground
HTML
<span id="temperature"></span>
JavaScript
var weatherAPI='http://api.openweathermap.org/data/2.5/weather',
data={
q:"Portland,OR",
units:"metric"
},
showWeather=function(weatherReport){
$('#temperature').text(weatherReport.main.temp);
};
$.ajax({
"url":weatherAPI,
"data":data,
"success":showWeath
"dataType":"jsonp"
});