S
SolidJS11mo ago
gsoutz

css styling out of route options

This <div class='main-wrap'> <div class='main'> <Routes> <Route path='/' component={Home}/> <Route path='/shalala' component={Shalala}/> <Route path='/repertoires' component={Repertoires}/> Now how do I put a class like 'main-wrap on-home' or 'main-wrap on-shalala' depending on which page I am. I am guessing this is a single page application pattern to apply css styles depending on which page you are so here it goes.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server