MCPcopy Index your code
hub / github.com/TanStack/form / Comp

Function Comp

packages/solid-form/tests/createFormHook.test.tsx:49–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47 }
48
49 function Comp() {
50 const form = useAppForm(() => ({
51 defaultValues: {
52 firstName: 'FirstName',
53 lastName: 'LastName',
54 } as Person,
55 }))
56
57 return (
58 <>
59 <form.AppField
60 name="firstName"
61 children={(field) => <field.TextField label="Testing" />}
62 />
63 </>
64 )
65 }
66
67 const { getByLabelText } = render(() => <Comp />)
68 const input = getByLabelText('Testing')

Callers

nothing calls this directly

Calls 1

useAppFormFunction · 0.50

Tested by

no test coverage detected