Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

script tags in react

componentDidMount () {
    const script = document.createElement("script");

    script.src = "https://use.typekit.net/foobar.js";
    script.async = true;

    document.body.appendChild(script);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #script #tags #react
ADD COMMENT
Topic
Name
2+6 =