I am using module.scss
in next.js
for styling.
import styles from './test.module.scss';
export default function Test() {
return (
<>
<div className={styles.wrapper}></div>
<div className="aaaa">asdsa</div>
</>
);
}
// test.module.scss
.wrapper {
}
.aaaa {
background-color: red;
} // It's not working!!!
The class aaaa
is applied as a generic variable. How can I style it while referencing the generic class name inside the test.module.scss file?
I want to style while referencing that class name without using child selectors!