JSFiddle - React, Tailwind, and code Playground

by ChrisLTD

HTML

<a href="#some_url" data-src="http://placekitten.com/100/100">link</a>

JavaScript

$('[data-src]').each(function(index) {
  $(this).html('<img src="' + $(this).data('src') + '">');
});