JSFiddle - React, Tailwind, and code Playground

by Darby Rathbone

JavaScript

$('.results').append($('<a>', {
				href: "#",
				class: 'thumb',
				html: $("<img>", {
					src: element.snippet.thumbnails.default.url,
					id: element.id.videoId,
					"data-title": element.snippet.title,
					"data-description": element.snippet.description,
				})
			}).click(function(e){
		e.preventDefault();
		console.log('HELLO');
	}));