React route element using another route element spreadsheet
I have two main pages divided into routes inside my jsx code. A homepage.js that has a home.scss stylesheet, and a register.js that has a register.scss stylesheet. Problem is, when I access the register page, the home.scss is still applying, and vice versa. I wish to access register.scss only when I go to it’s link, as it’s stylesheet is causing a bit of chaos in my homepage and future pages.