JSFiddle - React, Tailwind, and code Playground

by j08691

HTML

<button>MENU</button>
<div id="nomore" style="display:none;">
    <br>
<a href="www.yahoo.com">Yahoo</a>
    <br>ITEM 2
    <br>ITEM 3
    <br>ITEM 4
    <br>ITEM 5
    <br>
</div>

JavaScript

$("button").click(function (e) {
      e.stopPropagation();
      $('div#nomore').toggle();
  });
  $('body').click(function () {
      $('div#nomore').hide();
  });