JSFiddle - React, Tailwind, and code Playground
HTML
<p></p>
<img class="imghover" src="http://via.placeholder.com/350x150" alt="image 1 - Mon texte" data-texte-b="image 1 - texte B"/>
<p></p>
<img class="imghover" src="http://via.placeholder.com/350x150" alt="image 2 - Mon texte" data-texte-b="image 2 - texte rrrB"/>
JavaScript
$( function(){
$('.imghover').on('mouseenter', function(){
txt=$(this).data('texte-b');
$(this).prev('p').html(txt);
}).on('mouseleave', function(){$(this).prev('p').empty();});
});