Created
May 21, 2024 04:21
-
-
Save SarahElson/3297e72223bedc78b2fcb78d848f2814 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 the styles in a JavaScript file | |
import styles from './Card.module.css' | |
//use it as an object | |
<div class={styles.card}> | |
{/* Code related to card */} | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment