@barguide/react-hooks
Version:
TypeScript | React Hooks
8 lines (7 loc) • 332 B
TypeScript
/**
* @name useFormValidation
* @description Simple hook that takes a form element as a ref and returns
* the validity using HTML validation and the rules on the form inputs
*/
declare const useFormValidation: (formRef: React.RefObject<HTMLFormElement>, dependencies: unknown[]) => boolean;
export { useFormValidation };