File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ function ShoppingListForm() {
104
104
) ;
105
105
}
106
106
107
- function ToggleForm ( ) {
107
+ function ToggleExample ( ) {
108
108
const form = useForm ( {
109
109
name : "codestix" ,
110
110
location : { long : 123 , lat : 456 } , // Object field
@@ -146,7 +146,7 @@ function FormJson(props: { form: FormState<any> }) {
146
146
}
147
147
148
148
// Usage
149
- function ExampleForm ( ) {
149
+ function FormJsonExample ( ) {
150
150
const form = useForm ( { name : "John" , age : 19 } ) ;
151
151
return (
152
152
< form
@@ -181,7 +181,7 @@ function loginValidator(values: LoginRequest): ErrorMap<LoginRequest, string> {
181
181
} ;
182
182
}
183
183
184
- function FormExample ( ) {
184
+ function ValidationExample ( ) {
185
185
const form = useForm < LoginRequest > (
186
186
{ email : "" , password : "" } ,
187
187
loginValidator , // Pass loginValidator to useForm
@@ -214,11 +214,11 @@ export default function Testing() {
214
214
< hr />
215
215
< ShoppingListForm />
216
216
< hr />
217
- < ToggleForm />
217
+ < ToggleExample />
218
218
< hr />
219
- < ExampleForm />
219
+ < FormJsonExample />
220
220
< hr />
221
- < FormExample />
221
+ < ValidationExample />
222
222
</ >
223
223
) ;
224
224
}
You can’t perform that action at this time.
0 commit comments