UNPKG

siddhesh-10-react-form-binder

Version:

A React hook that simplifies form state management by providing Angular-like two-way binding, nested state support, and validation—all with TypeScript support.

18 lines (11 loc) 620 B
# react-form-binder A React hook for form state management with Angular-like two-way binding, nested state support, and validation — all with TypeScript support. ## Features - **Automatic Input Binding:** Easily bind input elements to form state. - **Nested State Support:** Use dot-notation (e.g., `user.name`) to manage nested state. - **Field-Level & Full-Form Validation:** Supply custom validator functions for individual fields and validate the entire form. - **TypeScript Support:** Benefit from strong typings and enhanced IDE experience. ## Installation Using npm: ```bash npm install react-form-binder