Created
August 30, 2019 20:02
-
-
Save chriscauley/70e09257765b12f7933b715fc7aa40e6 to your computer and use it in GitHub Desktop.
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
// css.js | |
export default { | |
button: { | |
default: "...", // class names | |
error: "..." | |
} | |
} | |
// MyComponent.js | |
import css from './css' | |
export default props => { | |
return ( | |
<div> | |
<button className={css.button.default}>Button!</button> | |
</div> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment