Skip to content
JS
Package

react-script-hook

React hook to dynamically load an external script and know when its loaded

v1.7.2, 3 Sept 2022MITCommonJSTypes: BundledReact
$ npm install react-script-hook

Key numbers

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

Downloads

Last week 2026-09-15 to 2026-09-21
0200k400k600k800kSept 2025Mar 2026Sept 2026High 773.6k (25 Aug 2026)Low 188.1k (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.

483,120 downloads last week, 2,542,720 in the last month. The 12-month change of +62% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
032 in total
Latest version
1.7.2, 3 Sept 20224 years ago
First published
29 May 2019
Last push to GitHub
7 Apr 20231,266 days before the snapshot
Repository archived
No
Open issues
5
Open pull requests
5
Commits, last 52 weeks
0
Dependents on npm
72

Major versions

  1. v1 first release 1.0.0, 31 May 2019
  2. v0 first release 0.0.1, 29 May 2019

Recent releases

VersionPublished
1.7.23 Sept 2022
1.7.13 Sept 2022
1.7.01 Aug 2022
1.6.011 Jan 2022
1.5.014 Sept 2021
1.4.112 Jun 2021
1.4.012 Jun 2021
1.3.015 Feb 2021
1.2.15 Oct 2020
1.1.119 May 2020
1.1.011 May 2020
1.0.172 Apr 2020
1.0.161 Apr 2020
1.0.1518 Feb 2020
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
14 kB
Dependencies (0)
None
Peer dependencies (2)
reactreact-dom
npm install react-script-hook
  • jsDelivrhttps://cdn.jsdelivr.net/npm/react-script-hook@1.7.2/
  • unpkghttps://unpkg.com/react-script-hook@1.7.2/
  • esm.shhttps://esm.sh/react-script-hook@1.7.2
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.