Last active
March 10, 2016 10:15
-
-
Save mistadikay/f7c007820eea3f22721b 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
/* | |
. | |
└── 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