import React from 'react'; class Checkbox extends React.Component { render() { let {checked = false, disabled, value, label, inputRef, className, name} = this.props; let dataTestId = this.props['data-test-id']; return (
); } onChange(e) { let {onChange} = this.props; if (onChange) { onChange(e.target.checked); } } getChecked() { return this.props.checked; } getValue() { return this.props.value; } } export default Checkbox;