index.js 283 Bytes
Newer Older
zhanghaozhe committed
1 2 3 4 5
import React from 'react';
import './button.scss'

import classnames from 'classnames'

zhanghaozhe committed
6
const Button = ({children, active}) => {
zhanghaozhe committed
7
    return (
zhanghaozhe committed
8
        <button className={classnames('custom-button', {active})}>
zhanghaozhe committed
9 10 11 12 13 14
            {children}
        </button>
    );
};

export default Button;