hupe1980

hupe1980/react-script-hook

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

TypeScript
128
19
MIT License

react‑script‑hook is a tiny React utility that lets you programmatically inject any external script (e.g., a CDN library) and provides loading/error flags so you can render fallbacks or callbacks once the script is ready. It automatically avoids duplicate loads and can detect scripts already present, making it ideal for React developers who need to load third‑party SDKs such as payment, analytics, or UI components on demand within client‑side applications.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies

Support the repos that depend on this repository

Top contributors

hupe1980's profile
hupe1980
64 contributions
dependabot[bot]'s profile
dependabot[bot]
8 contributions
edemaine's profile
edemaine
7 contributions
a-tokyo's profile
a-tokyo
5 contributions
abevoelker's profile
abevoelker
1 contributions
hartzis's profile
hartzis
1 contributions
dunncl15's profile
dunncl15
1 contributions
chrisdrackett's profile
chrisdrackett
1 contributions
gbettencourt's profile
gbettencourt
1 contributions
lyallh's profile
lyallh
1 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet