react-jss question:
Is there a risk of FOUC (A flash of unstyled content) with react-jss global styles, because we can not export styles as real css?
(since the stylesheet from JSS is rendered only when the script is run).
Can I export a real stylesheet with webpack generated from 'react-jss'?
I'm using global jss styles in my root.tsx file like so:
import {createUseStyles} from 'react-jss'
import styles from '../../style/root.style'
and in root.style.ts
export default {
'@global': {
h1: {
extend: typography.h1,
color: colors.moss.regular,
},
h2: {
extend: typography.h2,....
question from:
https://stackoverflow.com/questions/65937173/is-it-inevitable-to-get-fouc-with-react-jss 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…