UNPKG

hoxa

Version:

A comprehensive collection of 100+ production-ready React hooks for state management, UI effects, forms, animations, and more. Carefully curated and optimized for performance and developer experience.

12 lines (11 loc) 316 B
export declare function useField<T>(initialValue: T, options?: { validate?: (value: T) => string | null; }): { value: T; error: string | null; touched: boolean; onChange: (value: T) => void; onBlur: () => void; setValue: (value: T) => void; setTouched: (touched: boolean) => void; };