next-safe-form 1.0.7 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -132,10 +132,10 @@ return {
|
|
|
132
132
|
```tsx
|
|
133
133
|
"use client";
|
|
134
134
|
|
|
135
|
-
import {
|
|
135
|
+
import { useSafeActionForm } from "next-safe-form";
|
|
136
136
|
|
|
137
137
|
export default function LoginForm() {
|
|
138
|
-
const { formAction, isPending, fieldsErrors, serverError } =
|
|
138
|
+
const { formAction, isPending, fieldsErrors, serverError } = useSafeActionForm({
|
|
139
139
|
action: loginAction,
|
|
140
140
|
initialValues: {
|
|
141
141
|
email: "",
|
|
@@ -216,4 +216,5 @@ MIT
|
|
|
216
216
|
|
|
217
217
|
## 👤 Author
|
|
218
218
|
|
|
219
|
-
Built with ❤️ for Next.js developers
|
|
219
|
+
Built with ❤️ for Next.js developers by
|
|
220
|
+
[4develhoper](https://github.com/4develhoper)
|