Created
August 15, 2021 13:04
-
-
Save KevinVR/c1ffb65bdb4e6ddeaea5e286c3b7cac1 to your computer and use it in GitHub Desktop.
This file contains 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
// Text.module.css | |
.custom-text { | |
color: red; | |
font-size: 20px; | |
} | |
// Text.jsx | |
import TextStyles from './Text.module.css'; | |
function Text({ text }) { | |
return <div className={TextStyles.customText}> | |
// Notice we use the TextStyles value | |
// as the final class name is auto-generated | |
{text} | |
</div>; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment