{"library":"react-script-hook","type":"library","category":null,"description":"A React hook for dynamically loading external scripts and tracking their load state. Current stable version is 1.7.2. The package is actively maintained with regular updates. It provides a simple API: call useScript with a script URL and get loading/error states. Key differentiators: automatic deduplication (multiple components loading the same script share a single request), support for onload callbacks, a checkForExisting flag for environments where the script may already be present, and conditionally loading by setting src to null. Includes TypeScript definitions and supports React 16.8.6 through 18.","language":"javascript","status":"active","version":"1.7.2","tags":["javascript","react","hook","script","loader","typescript"],"install":[{"cmd":"npm install react-script-hook","imports":["import useScript from 'react-script-hook'","import { useScript } from 'react-script-hook'","import type { UseScriptOptions } from 'react-script-hook'"]},{"cmd":"yarn add react-script-hook","imports":[]},{"cmd":"pnpm add react-script-hook","imports":[]}],"homepage":null,"github":"https://github.com/hupe1980/react-script-hook","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/react-script-hook","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/react-script-hook/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Thu Jun 18","next_check":"Sun Jul 26","install_tag":null}}