Skip to content

Instantly share code, notes, and snippets.

@chriscauley
Created August 30, 2019 20:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chriscauley/70e09257765b12f7933b715fc7aa40e6 to your computer and use it in GitHub Desktop.
Save chriscauley/70e09257765b12f7933b715fc7aa40e6 to your computer and use it in GitHub Desktop.
// 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