import React, {useEffect} from 'react' import styles from './styles.module.css' export default function Checkbox({label, error, hint, name, value, onChange, onBlur, isValid}){ const handleCheck = ev => { onChange({target: {value: !value}}) } useEffect(()=>{ if(value === "") onChange({target: {value: false}}) }, []) return (