UNPKG

@j2inn/app-react

Version:

React implementation of the j2inn-app framework

12 lines (11 loc) 400 B
import { ScriptTagType } from '@j2inn/app'; /** * A hook for loading external resources asynchronously. * * @param url The url of the script or CSS file to load. * @returns State information regarding whether the resource was loaded or failed to load. */ export declare function useDynamicResources(urls: string[], type?: ScriptTagType): { ready: boolean; failed: boolean; };