Sitemap

🚀 Say hello to RHF+: All the power of React Hook Form, plus more

2 min readMay 4, 2025

👉 Check out the repo: github.com/bombillazo/rhf-plus

Press enter or click to view image in full size

We all love React Hook Form (RHF) — it’s robust, has a great API, and makes handling forms in React a joy.

But sometimes… we wish its development moved a little faster. RHF maintains tight code control and strict standards (and we don’t blame them!). The PR review bottleneck often slows down or blocks new contributions and features.

That’s why I’m excited to introduce React Hook Form Plus (`rhf-plus`) — a drop-in fork of RHF for the intrepid and restless RHF user. `rhf-plus` keeps everything you love but adds practical, developer-friendly enhancements without waiting on upstream merges or big version releases.

⭐️ Enhancements?

What enhancements are we talking about? Here are some of them:

  • Imperative form submission: Give your form an id and trigger form submissions imperatively from any place in your application logic.
  • JSX error messages: Use React elements (ReactElement) as error messages instead of being limited to plain strings.
  • Smart disabled state: Pass the form-level disabled prop value to registered field props. You can also pass an array of field names for targeted field disabling.
  • Controllable isLoading state: Declaratively override the form isLoading state to control it with logic external to the form.
  • ScrollIntoView method on field refs: Gain access to the native DOM scrollIntoView() function on form fields to programmatically scroll to them.
  • Form-level metadata: Store and access custom metadata directly in your form state without needing external states or contexts.

💡 What else is special about `rhf-plus`?

✅ It’s 100% compatible — no breaking changes, no rewrites; it installs and goes.
✅ It evolves faster — contributions are encouraged and promptly reviewed, so improvements don’t get stuck waiting.
✅ It stays synced with RHF — you always get the latest RHF under the hood.
✅ It doesn’t skimp on quality — we demand the level of care as if this code were to live in the RHF repo.

⚡ Why should you try it?

We are developers who extensively use and understand the RHF library. `rhf-plus` is built by and for this community. Ideally, these enhancements would be packaged in React Hook Form. If enough people use and support this library, many of these improvements could eventually flow back to RHF!

🚀 Ready to dive in?

Drop it into your project using RHF — no changes required — and instantly unlock the new goodies.

npm install @bombillazo/rhf-plus
- import { useForm } from "react-hook-form"
+ import { useForm } from "@bombillazo/rhf-plus"

📣 Get involved!

To help `rhf-plus` improve and grow, you can:

  • Star the repo.
  • Download it and try out the enhancements.
  • Report any issues and give user feedback.
  • Most importantly, contribute to the project!

--

--

Hector Ayala
Hector Ayala

Written by Hector Ayala

Tech entrepreneur from Puerto Rico 🇵🇷 Interested in combining tech, business, and product design.

No responses yet