import { useScript } from "https://deno.land/x/netzo@0.4.72/deps/usehooks-ts.ts";
Custom hook for dynamically loading scripts and tracking their loading status.
Examples
const scriptStatus = useScript('https://example.com/script.js', { removeOnUnmount: true });
// Access the status of the script loading (e.g., 'loading', 'ready', 'error').
const scriptStatus = useScript('https://example.com/script.js', { removeOnUnmount: true }); // Access the status of the script loading (e.g., 'loading', 'ready', 'error').