Lightweight utility for safely accessing deeply nested or flat error objects like in React Hook Form.
- 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
npm install rhf-error-util