JSFiddle - React, Tailwind, and code Playground

JavaScript

//YAHOO weather

var url = "http://query.yahooapis.com/v1/public/yql?q=select * from weather.forecast where woeid=12677649 and u='c'&format=json&callback=";
$.ajax({
    type: "GET",
  url: encodeURI(url)
})
  .done(function( response ) {
    var query = response.query
    var results = response.query.results;
    var channel = results.channel;
    var location = channel.location;
    $("div").append(location);
  });

//    http://developer.yahoo.com/weather/
//    http://developer.yahoo.com/yql/console/