While rendering style files are received after html. Hence, before each refresh of the page, it shows plain HTML of the page and then apply style from the received file.
So, my questions.
1) How to avoid this?
There is react-inline-css plugin listed in package.json in the repository though it's not being used be existing components. How can I use it in the existing boilerplate?
Also, IMHO, using the way to mention className as className={styles.classA} is of no benefit, I guess. I could simply have require/import the file in the jsx file and added classes simply like className='classA'
2) Since, there isn't any caching mechanism in the boilerplate, how to add it?
While rendering style files are received after html. Hence, before each refresh of the page, it shows plain HTML of the page and then apply style from the received file.
So, my questions. 1) How to avoid this? There is react-inline-css plugin listed in package.json in the repository though it's not being used be existing components. How can I use it in the existing boilerplate?
Also, IMHO, using the way to mention
className
asclassName={styles.classA}
is of no benefit, I guess. I could simply haverequire/import
the file in thejsx
file and added classes simply likeclassName='classA'
2) Since, there isn't any caching mechanism in the boilerplate, how to add it?
Thanks