can we add script tag in react code example
Example 1: react insert script tag
useEffect(() => {
const script = document.createElement('script');
script.src = "https://use.typekit.net/foobar.js";
script.async = true;
document.body.appendChild(script);
return () => {
document.body.removeChild(script);
}
}, []);
Example 2: react script tag for html
<script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script>