Responsive multi page site using React js

Solution retrospective
Created my first ever react application 😊 🎉. It was a fun process, but I am bothered by the fact that when the site is loaded initially, on route change, the page turns white briefly before showing page content and I was wondering if that's normal. Since this is my first react project, I would appreciate any feedback that could help me improve.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @sahand-masoleh
Hey mate!
The page turns white because your body element is white. When everything unmounts that's what you're left with.
An easy fix is to set the background color of your body element to something close to all your pages.
Marked as helpful
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord