I have a relatively straightforward issue of trying to add inline scripting to a React component. What I have so far:
\'use strict\'; import \'../../styles/
If you need to have block in SSR (server-side rendering), an approach with componentDidMount will not work.
componentDidMount
You can use react-safe library instead. The code in React will be:
import Safe from "react-safe" // in render { `try{Typekit.load({ async: true });}catch(e){}` }