JSFiddle - React, Tailwind, and code Playground

HTML

<input type="button" id="myButt" value="Test" />
<div id="report"></div>

JavaScript

var prov, country;

$.get("http://ipinfo.io", function (response) {
    ip = response.ip;
    prov = response.region;
    country = response.country;
}, "jsonp");

$('#myButt').click(function() {
    $('#report').html('IP: '+ip+ '<br>Prov: ' +prov+ '<br>Country: ' +country);
});