JSFiddle - React, Tailwind, and code Playground
JavaScript
console.log(navigator.userAgent)
alert(isIE() === 9)
alert(isIE())
function isIE () {
var myNav = navigator.userAgent.toLowerCase();
return (myNav.indexOf('msie') != -1) ? parseInt(myNav.split('msie')[1]) : false;
}