<div id="app"></div>
const Button = ({ className = '', ...props }) => {
  const cx =
    'bn f6 dim br2 pv3 ph4 white bg-purple ' + className;

  return <button className={cx} {...props} />;
};

const App = () => (
  <div className="vh-100 flex items-center justify-center">
    <div>
      <Button>Button Text</Button>
      <p className="f7 tc mt2 mb0 code gray">regular button</p>
    </div>
    <div>
      <Button className="f7 ml3">Button Text</Button>
      <p className="f7 tc mt2 mb0 code gray">with .f7</p>
    </div>
    <div>
      <Button className="f1 ml3">Button Text</Button>
      <p className="f7 tc mt2 mb0 code gray">with .f1</p>
    </div>
  </div>
);

ReactDOM.render(<App />, document.querySelector('#app'));
View Compiled

External CSS

  1. https://cdnjs.cloudflare.com/ajax/libs/tachyons/4.9.1/tachyons.css

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/react/16.2.0/umd/react.development.js
  2. https://cdnjs.cloudflare.com/ajax/libs/react-dom/16.2.0/umd/react-dom.development.js