JSFiddle - React, Tailwind, and code Playground

HTML

<p id ="data"></p>

JavaScript

$(document).ready(function(){
    $.getJSON('https://api.postcodes.io/random/postcodes').success(function(data){
        return data
    })
    .error(function(desc, error){
        $('#data').html(error);
    });
    
});