Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- renderButton = () => {
- const { type, style, isDisabled, onClick, ...otherProps } = this.props
- return (
- <button
- type={ type }
- className={ this.getButtonClassName() }
- style={ style }
- onClick={ onClick }
- disabled={ isDisabled }
- { ...otherProps }
- >
- { this.renderChildren() }
- </button>
- )
- }
Add Comment
Please, Sign In to add comment