Skip to content

Instantly share code, notes, and snippets.

@mistadikay
Last active March 10, 2016 10:15
Show Gist options
  • Save mistadikay/f7c007820eea3f22721b to your computer and use it in GitHub Desktop.
Save mistadikay/f7c007820eea3f22721b to your computer and use it in GitHub Desktop.
/*
.
└── app/
└── somewhere.js
*/
// js from the last layer, styles from all previous layers
import Button from '#button';
// import Button from 'product-theme/button/index.js';
// import from 'theme-reset/styles.less';
// import from 'product-theme/styles.less';
class SomeAppComponent extends React.Component {
// ...
return (
//...
<Button
mix={{ block: 'my-app', elem: 'button' }}
icon="never-gonna-give-you-up.png"
onClick={doStuff}>
{'Click me'}
</Button>
//...
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment