react-device-detection
1.0.2 • Public • Published
General HOC that will pass in boolean props such as isMobile or isFirefox for a component to use at its discretion.
Install:
yarn add react-device-detection
Example
import deviceDetection from 'react-device-detection';
...
deviceDetection('mobile')(withRouter(MobileNav));
Versions
Current Tags
- VersionDownloads (Last 7 Days)
- 1.0.2
3
Version History
Package Sidebar
Install
npm i react-device-detection
Weekly Downloads