@kaliber/use-is-ie11
v1.0.6
Published
Detects if a browser is IE11
Downloads
16
Readme
useIsIe11
Detects if a browser is IE11.
Motivation
In case you need to detect whether a browser is Internet Explorer 11. Doesn't use UA sniffing, but feature detection.
Installation
yarn add @kaliber/use-is-ie11
Usage
import { useIsIe11 } from 'use-is-ie11'
function Component() {
const isIe11 = useIsIe11()
return isIe11 ? '😞' : '😎'
}
Disclaimer
This library is intended for internal use, we provide no support, use at your own risk. It does not import React, but expects it to be provided, which @kaliber/build can handle for you.
This library is not transpiled.