JSFiddle - React, Tailwind, and code Playground
by Peter Galiba
HTML
<section id="feed"></section>
JavaScript
(function ($) {
function render(data) {
var feed = $("#feed"),
results = data.query.results,
result = (results.json || results).result.value;
if (result) {
result.forEach(function (item) {
$('<article>').append($('<h1>').append($('<a>', {href: item.link, text: item.title}))).appendTo(feed);
});
}
}
$.ajax("https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.pipes%20where%20pipeid%3D'0fbe282ad3145b98f867c35c79557bfd'&format=json&diagnostics=true&callback=?", {dataType: "jsonp"}).done(render);
}(jQuery));