JSFiddle - React, Tailwind, and code Playground

by doug65536

HTML

<div id="gists"></div>

JavaScript

$(function() {
    $.ajaxSetup({error: function(xhr,msg) {
        alert("Error: " + msg);
    }});

    var display = $('#gists');
    $.getJSON('https://api.github.com/gists/public', function(data) {
        $.each(data, function() {
            display.append($('<p>').append($('<a>').attr('href', this.html_url).text(this.description || this.html_url)));
        });
    });
});