rfhook 1.0.0 → 1.0.1
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 +6 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# rfhook
|
|
2
2
|
|
|
3
3
|
A lightweight React hook for handling form submissions with advanced form data parsing capabilities. Supports nested objects, arrays, and dot notation for complex form structures.
|
|
4
4
|
|
|
@@ -14,22 +14,22 @@ A lightweight React hook for handling form submissions with advanced form data p
|
|
|
14
14
|
## Installation
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
|
-
npm install
|
|
17
|
+
npm install rfhook
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
|
-
pnpm add
|
|
21
|
+
pnpm add rfhook
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
```bash
|
|
25
|
-
yarn add
|
|
25
|
+
yarn add rfhook
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
## Quick Start
|
|
29
29
|
|
|
30
30
|
```tsx
|
|
31
31
|
import React from 'react';
|
|
32
|
-
import { useForm } from '
|
|
32
|
+
import { useForm } from 'rfhook';
|
|
33
33
|
|
|
34
34
|
interface FormData {
|
|
35
35
|
email: string;
|
|
@@ -169,7 +169,7 @@ The `parseFormData` utility converts FormData into structured objects using thes
|
|
|
169
169
|
### Contact Form
|
|
170
170
|
|
|
171
171
|
```tsx
|
|
172
|
-
import { useForm } from '
|
|
172
|
+
import { useForm } from 'rfhook';
|
|
173
173
|
|
|
174
174
|
interface ContactData {
|
|
175
175
|
name: string;
|