Skip to content

Instantly share code, notes, and snippets.

@mistadikay
Last active March 10, 2016 10:16
Show Gist options
  • Save mistadikay/c4c6e236af1d1c5f9cc7 to your computer and use it in GitHub Desktop.
Save mistadikay/c4c6e236af1d1c5f9cc7 to your computer and use it in GitHub Desktop.
/*
.
└── product-theme/
└── button/
├── index.js
└── styles.less
*/
// js from the last layer, styles from all previous layers
import Button from '#button';
// import Button from 'custom-components/button/index.js';
// import from 'theme-reset/styles.less';
// import from './styles.less';
export default function Button({ children, ...props }) {
return (
<Button {...props}>
{children}
<div block="button" elem="mask" />
</Button>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment