Global style
Sometimes you might want to insert global css like resets or font faces. Use injectGlobalStyle
to write global CSS, and injectGlobalStyle
supports ssr.
injectGlobalStyle({ '.title': { fontWeight: 800, fontSize: '20px', color: 'hotpink', },})
SyntaxError: Unexpected token (1:8) 1 : return () ^
LIVE DEMO