Last active
December 6, 2016 03:49
-
-
Save steezeburger/369d44684118bc7297ea842a00dcb4f5 to your computer and use it in GitHub Desktop.
This file contains 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
const PrimaryBtn = props => ( | |
<Btn {...props} primary /> | |
); | |
const SecondaryBtn = props => ( | |
<Btn {...props} secondary /> | |
); | |
const Btn = ({ className, primary, secondary, ...props }) => ( | |
<button | |
type="button" | |
className={classnames( | |
'bakerBtn', | |
primary && 'btnPrimary', | |
secondary && 'btnSecondary', | |
className | |
)} | |
{...props} | |
/> | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment