JSFiddle - React, Tailwind, and code Playground

by Alex Azuero

HTML

<div id="dvImages">
</div>

CSS

img
{
    padding : 10px;
}

JavaScript

$(document).ready(function() {
    $.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?jsoncallback=?", {
        tags: "wmata, dc",
        tagmode: "any",
        format: "json"
    }, function(data) {
        $.each(data.items, function(i, item) {
            var img = $("<img/>");
            img.attr('width', '200px');
            img.attr('height', '150px');
            img.attr("src", item.media.m).appendTo("#dvImages");
            if (i == 200) return false;
        });
    });
});