Next.js Discord

Discord Forum

Conditional Classes

Unanswered
Northeast Congo Lion posted this in #help-forum
Open in Discord
Avatar
Northeast Congo LionOP
   <header className={`${styles.main_header} ${isScrolled ? 'active' : ''}`}>

this is not working how can i fix conditional classes work

0 Replies