Skip to main content

useLoadScript

The useLoadScript hook loads an external script tag in the browser. It allows React components to lazy-load third-party dependencies.

[src: string, options?: LoadScriptOptions]
Anchor to attributes
attributes
Record<string, string>

Construct a type with a set of properties K of type T

'head' | 'body'
Anchor to module
module
boolean

Was this page helpful?