JSFiddle - React, Tailwind, and code Playground

HTML

<h2>Alex Thomas<span class="hide" id="tooltip">Im a tool tip</span></h2>

CSS

.hide{display:none;}

#tooltip{position:relative; right:80px; top:40px; background-color:yellow; color:red;}

JavaScript

$('h2').hover(
  function(){
    $(this).find('span').show();
  },
  function(){
    $(this).find('span').hide();
  }
);