JSFiddle - React, Tailwind, and code Playground JavaScript if (navigator.userAgent.toLowerCase().indexOf('chrome') > -1) { alert("Chrome"); }