rhf-error-util
Version:
Lightweight utility hook for safely accessing errors in react-hook-form (nested or flat)
22 lines (15 loc) • 783 B
Markdown
# rhf-error-util
> Lightweight utility for safely accessing deeply nested or flat error objects like in React Hook Form.
[](https://www.npmjs.com/package/rhf-error-util)
[](LICENSE)
[](https://www.typescriptlang.org/)
[](https://bundlephobia.com/result?p=rhf-error-util)
## ✨ 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
```bash
npm install rhf-error-util
```