Why use className={styles.main}?
Answered
Pyramid ant posted this in #help-forum
Pyramid antOP
why not just say
className="main"
instead of className={styles.main}
?Answered by risky
if you use
.module.css
, then it makes fancy class names to be used safer (ie no duplicate)... but if you just import normal .css
then you can use the first option1 Reply
if you use
.module.css
, then it makes fancy class names to be used safer (ie no duplicate)... but if you just import normal .css
then you can use the first optionAnswer