Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if (typeof onCheck === 'function') {
onCheck(evt, !props.checked, props.value, props.name)
}
if (square.current) square.current.focus()
}
return (
<label>
<div tabindex="{props.disabled" role="checkbox" aria-checked="{props.checked}">
{props.indeterminate && }
{props.checked && !props.indeterminate && }
</div>
</label>