Library
FormsReact Hook Form
Popular form state and validation workflow for hook-based component trees.
UnverifiedActive
Unverified
Compatibility has not been verified yet in the PreactHub catalog.
Packagereact-hook-form
npm install react-hook-formimport { useForm } from "react-hook-form"; export function SignupForm() { const { register, handleSubmit } = useForm<{ email: string }>(); return ( <form onSubmit={handleSubmit(console.log)}> <input {...register("email")} /> <button type="submit">Submit</button> </form> );}Introduction
React Hook Form is a common choice for complex forms with strong TypeScript ergonomics.
Preact configuration
Compatibility should be validated with `preact/compat` in your concrete app stack.
SSR notes
Generally safe for form rendering, but event and ref behavior should still be tested in production-like conditions.
Islands notes
When using this library inside an island, keep browser-specific setup inside the island component or an effect, and pass only serializable props from the server-rendered page.