JSFiddle - React, Tailwind, and code Playground

HTML

<div id="tt" >Test</div>

JavaScript

$('#tt').on({
  "click": function() {
    $(this).tooltip({ items: "#tt", content: "Displaying on click"});
    $(this).tooltip("open");
  },
  "mouseout": function() {      
     $(this).tooltip("disable");   
  }
});