Closed geeron closed 8 months ago
@geeron you need to have react-hook-form installed as well, it's a peer dependency of the package
@AlemTuzlak Ok, thanks for clarifying and your awesome work. I made a PR with some suggested changes to the readme.
In the future, would it make sense to automatically install react-hook-form
as a dependency of remix-hook-form
itself so we don't have to install react-hook-form
manually?
@geeron Not really because the idea is that you pick your own version of react-hook-form rather than being tied to what I set it as because this wrapper should work with any version. I'll check out the PR as well soon!
Tried implementing the first example in the readme, but there is a type error:
Object literal may only specify known properties, and 'mode' does not exist in type 'UseRemixFormOptions<{ name: string; email: string; }>'.ts(2353)
All deps: