JSFiddle - React, Tailwind, and code Playground

HTML

<div id="notify"> Please use chrome browser </div>

CSS

#notify{
  display:none;
}

JavaScript

var isChrome = !!window.chrome && !isOpera;
            if(isChrome==false)  //if the browser is not chrome
            {
                alert("Please Use chrome browser");   // this works
                $('#notify').show();  //this doesn't work
            }