<div id="app"></div>
const Button = ({
f = 6,
color = 'white',
bg = 'purple',
className,
...props
}) => {
const cx = classNames(
'bn dim br2 pv3 ph4',
`f${f}`,
color,
`bg-${bg}`,
className,
);
return <button className={cx} {...props} />;
};
const App = () => (
<div className="vh-100 flex items-center justify-center">
<Button className="mr3">Update</Button>
<Button bg="moon-gray" color="dark-gray">Cancel</Button>
</div>
);
ReactDOM.render(<App />, document.querySelector('#app'));
View Compiled