Skip to content
JS
Package

use-mobile-detect-hook

The React hook to detect if the device is mobile or desktop.

v1.0.5, 26 Mar 2022MITCommonJSTypes: BundledReact
$ npm install use-mobile-detect-hook

Key numbers

As of 25 Sept 2026
Weekly downloads
2k
+53% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
4 years ago
v1.0.5
GitHub stars
82
14 forks
Open issues / PRs
2 / 14
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
02k4k6kSept 2025Mar 2026Sept 2026High 5.1k (21 Jul 2026)Low 782 (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

1,978 downloads last week, 11,524 in the last month. The 12-month change of +53% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
1.0.5, 26 Mar 20224 years ago
First published
-
Last push to GitHub
7 Mar 20231,297 days before the snapshot
Repository archived
No
Open issues
2
Open pull requests
14
Commits, last 52 weeks
0
Dependents on npm
5

Major versions

-

Recent releases

-

Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=8
Runtimes
-
Unpacked size (npm)
5.2 kB
Dependencies (0)
None
Peer dependencies (1)
react
npm install use-mobile-detect-hook
  • jsDelivrhttps://cdn.jsdelivr.net/npm/use-mobile-detect-hook@1.0.5/
  • unpkghttps://unpkg.com/use-mobile-detect-hook@1.0.5/
  • esm.shhttps://esm.sh/use-mobile-detect-hook@1.0.5
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): downloads_week 1978 < 10000.