JSFiddle - React, Tailwind, and code Playground

by fiddleyetu

HTML

<h3>Source</h3>

<div id="ImageList">
    <img src="" alt="first"/>
    <img src="" alt="second"/>
    <img src="" alt="three"/>
</div>
<h3>Destination</h3>
<div id="destination_div"></div>

JavaScript

$(function() {
    $('#ImageList').on('click', 'img', function() {
        $('#destination_div').html( $(this).clone() );
    });
});