JSFiddle - React, Tailwind, and code Playground
by heera
HTML
<script type="text/javascript">
function your_callback(data) {
// do something with data
alert('City : '+data.city+' Country name : '+data.countryName);
}
</script>
<script type="text/javascript" src="http://smart-ip.net/geoip-json?callback=your_callback"></script>