scss with css modules
Answered
gin posted this in #help-forum
ginOP
Hey guys, i would like to know how i can reference nested classes.
Example i have a .button class and inside that i have &.active
tsx -> styles.button active
Example i have a .button class and inside that i have &.active
tsx -> styles.button active
Answered by gin
this worked for me=
<div className={`${styles.button} ${styles.active}`}>
Home
</div>