I have defined a checkbox like below:
export const IndeterminateCheckbox = forwardRef(
({ indeterminate, ...rest }, ref) => {
const defaultRef = useRef()
const resolvedRef = ref || defaultRef
useEffect(() => {
resolvedRef.current.indeterminate = indeterminate
}, [resolvedRef, indeterminate])
return (<input type="checkbox" ref={resolvedRef} {...rest} />);
}
);
For which I am getting above lint error. I searched for multiple places but could not find how better I can define the IndeterminateCheckbox to avoid that error.