rhf-error-util
v1.0.0
Published
Lightweight utility hook for safely accessing errors in react-hook-form (nested or flat)
Maintainers
Readme
rhf-error-util
Lightweight utility for safely accessing deeply nested or flat error objects like in React Hook Form.
✨ Features
- Zero dependencies
- Works with nested keys (e.g.,
"object.keys.keys") - Returns
{ message, ref, type }object - Can be used with or without React Hook Form
🚀 Install
npm install rhf-error-util