#Classname not working
1 messages · Page 1 of 1 (latest)
Based on the provided code, it seems that you are using CSS Modules with the .module.css file naming convention. Your CSS code appears to be correct, and the app__dog class should be applied to the corresponding div element.
However, if the app__dog class is not being applied as expected, you can try the following steps to debug the issue:
- Ensure that your CSS file is named
Bar.module.cssand is located in the same directory as yourBarcomponent. - Double-check that the
stylesobject is imported correctly in your component file:import styles from './Bar.module.css'. - Verify that the
app__dogclass is being applied to thedivelement using thestylesobject:<div className={styles.app__dog}>.