JSFiddle - React, Tailwind, and code Playground
HTML
<ul class="overview">
<li>
<a href="xy.jpg">Link: <span class="desc">I am image.</span></a>
</li>
</ul>
<div id="large-img">
</div>
CSS
#large-img { background: cyan; width: 200px; height: 100px; }
JavaScript
$('.overview li a').click(function(){
var $newstuff=
$("<img src="
+ $(this).attr('href')
+ ">"
+ "<br><div>"
+ $(">.desc", this).html()
+ '</div>').hide();
$('#large-img').append($newstuff.fadeIn('slow'));
return false;
});