remix-hook-form
Advanced tools
Comparing version 4.0.0 to 4.0.1
{ | ||
"name": "remix-hook-form", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "Utility wrapper around react-hook-form for use with Remix.run", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -15,16 +15,13 @@ # remix-hook-form | ||
## Installation | ||
You can install the latest version of remix-hook-form using [npm](https://www.npmjs.com/): | ||
## Install | ||
`npm install remix-hook-form` | ||
npm install remix-hook-form react-hook-form | ||
Or, if you prefer [yarn](https://yarnpkg.com/): | ||
## Basic usage | ||
`yarn add remix-hook-form` | ||
Here is an example usage of remix-hook-form. It will work with **and without** JS. Before running the example, ensure to install additional dependencies: | ||
## Basic usage | ||
npm install zod @hookform/resolvers | ||
Here is an example usage of remix-hook-form. It will work with **and without** JS. | ||
```ts | ||
@@ -38,4 +35,4 @@ import { useRemixForm, getValidatedFormData } from "remix-hook-form"; | ||
const schema = zod.object({ | ||
name: zod.string().nonempty(), | ||
email: zod.string().email().nonempty(), | ||
name: zod.string().min(1), | ||
email: zod.string().email().min(1), | ||
}); | ||
@@ -117,2 +114,11 @@ | ||
## Video example and tutorial | ||
If you wish to learn in depth on how form handling works in Remix and want an example using this package I have prepared a video tutorial on how to do it. It's a bit long but it covers everything | ||
you need to know about form handling in Remix. It also covers how to use this package. You can find it here: | ||
https://youtu.be/iom5nnj29sY?si=l52WRE2bqpkS2QUh | ||
## API's | ||
@@ -119,0 +125,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48890
380