How to resolve FOUC in React.js
问题 I have built react.js site from create-react-app. But in production mode, there is FOUC because styles are loaded after html is rendered. Is there any way to resolve this? I have been searching google for answers, but haven't found proper one yet. 回答1: FOUC FOUC - so called Flash of Unstyled Content can be as very problematic as so many tries of solving this issue. To the point Let's consider following configuration of routing (react-router): ... <PageLayout> <Switch> <Route exact path='/'