import React from 'react';

const Button = ({ className = 'test', type = 'button' }) => ((
  <button
    className={className}
    type={type}
  >
    Follow Me
  </button>
));

Button.propTypes = {
  className: React.PropTypes.string,
  /* HTML native button types */
  type: React.PropTypes.oneOf(['submit', 'button', 'reset']),
};

export default Button;

import React, { PropTypes } from 'react';

const Button = ({ className = 'test', type = 'button', children }) => ((
  <button
    className={className}
    type={type}
  >
    { children }
  </button>
));

Button.propTypes = {
  className: PropTypes.string,
  /* HTML native button types */
  type: PropTypes.oneOf(['submit', 'button', 'reset']),
  children: PropTypes.node.isRequired,
};

export default Button;

improve button component