//@flow import React from "react"; type Props = { label?: string, checked: boolean, onChange?: boolean => void, disabled?: boolean }; class Checkbox extends React.Component { onCheckboxChange = (event: SyntheticInputEvent) => { if (this.props.onChange) { this.props.onChange(event.target.checked); } }; render() { return (
); } } export default Checkbox;