mirror of
https://github.com/rreusser/rreusser.github.io.git
synced 2026-02-01 17:20:38 +00:00
19 lines
362 B
JavaScript
19 lines
362 B
JavaScript
const React = require('react');
|
|
|
|
class Button extends React.PureComponent {
|
|
render() {
|
|
const { onClick, hasError, updateProps, ...props } = this.props;
|
|
return (
|
|
<button {...props} onClick={onClick.bind(this)}>
|
|
{this.props.children}
|
|
</button>
|
|
);
|
|
}
|
|
}
|
|
|
|
Button.defaultProps = {
|
|
onClick: function() {}
|
|
};
|
|
|
|
export default Button;
|