JSFiddle - React, Tailwind, and code Playground

HTML

<h3>
  some text
    <a href="http://google.com">google</a>
</h3>

JavaScript

$("h3").click(function(){ $(this).slideUp(); });