Skip to content

Instantly share code, notes, and snippets.

@steezeburger
Last active December 6, 2016 03:49
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 steezeburger/369d44684118bc7297ea842a00dcb4f5 to your computer and use it in GitHub Desktop.
Save steezeburger/369d44684118bc7297ea842a00dcb4f5 to your computer and use it in GitHub Desktop.
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