JSFiddle - React, Tailwind, and code Playground
HTML
<div><a href="#" data-image="http://lorempixel.com/200/200/sports/" title="">button 1</a></div>
<div><a href="#" data-image="http://lorempixel.com/200/200/food/" title="">button 2</a></div>
<div><a href="#" data-image="http://lorempixel.com/200/200/people/" title="">button 3</a></div>
JavaScript
$('div a').each(function(){
var imageUrl = $(this).data('image');
$(this).tooltip({ content: '<img src="'+ imageUrl +'" />' });
});