JSFiddle - React, Tailwind, and code Playground

by jairajdesai

HTML

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<div class="conditions">

</div>

JavaScript

$(document).ready(function() {
  $.getJSON("https://api.wunderground.com/api/ef5a156e62f050d2/conditions/q/OH/Columbus.json", function(response) {
    var location = response['current_observation']['display_location']['city'];
    var temp_f = response['current_observation']['temp_f'];
    $(".conditions").html("Current temperature in " + location + " is: " + temp_f + "ºF");
    console.log(response);
  });
});