Created
May 20, 2024 16:25
-
-
Save SarahElson/411e3a25d5834ab2a773b3d5615709bd to your computer and use it in GitHub Desktop.
How to Use CSS Modules With React Applications
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import styles from './App.module.css' | |
import HeroSection from './components/HeroSection/HeroSection'; | |
import Navbar from './components/Navbar/Navbar'; | |
function App() { | |
return ( | |
<div className={styles.app}> | |
<Navbar /> | |
<HeroSection /> | |
</div> | |
); | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment