use-script
load global scripts when mounting the component
Syntax
const src = "https://code.jquery.com/jquery-3.6.0.min.js";
const done = ()=> console.log( $ );
const status = useScript(src, done);Last updated
Was this helpful?
load global scripts when mounting the component
const src = "https://code.jquery.com/jquery-3.6.0.min.js";
const done = ()=> console.log( $ );
const status = useScript(src, done);Last updated
Was this helpful?
Was this helpful?