()
| 15 | } |
| 16 | |
| 17 | function Comp() { |
| 18 | const form = createForm(() => ({ defaultValues: {} as Person })) |
| 19 | |
| 20 | return ( |
| 21 | <> |
| 22 | <form.Field |
| 23 | name="firstName" |
| 24 | defaultValue="FirstName" |
| 25 | children={(field) => { |
| 26 | return ( |
| 27 | <input |
| 28 | data-testid="fieldinput" |
| 29 | value={field().state.value} |
| 30 | onBlur={field().handleBlur} |
| 31 | onInput={(e) => field().handleChange(e.currentTarget.value)} |
| 32 | /> |
| 33 | ) |
| 34 | }} |
| 35 | /> |
| 36 | </> |
| 37 | ) |
| 38 | } |
| 39 | |
| 40 | const { getByTestId } = render(() => <Comp />) |
| 41 | const input = getByTestId('fieldinput') |
nothing calls this directly
no test coverage detected