JSFiddle - React, Tailwind, and code Playground
HTML
<div class="divimg hidden">
<img src="" realsrc="https://www.google.pl/images/srpr/logo4w.png" alt="Obrazek" />
</div>
JavaScript
$('.divimg.hidden').on('mouseenter', function() {
var t = $(this).find('img');
t.attr('src', t.attr('realsrc'));
t.removeAttr('realsrc');
t.removeClass('hidden');
});