UseField example?
Is there an example on the proper usage of the
UseField
hook? hopeully someone can point me to a repo with an eaxmple? thanks in advance5 Replies
eastern-cyan•8mo ago

eastern-cyan•8mo ago
Seriously tho, don't use useField. We STRONGLY discourage its usage and we intentionally do not provide docs or support for its usage.
What are you trying to achieve?
provincial-silverOP•8mo ago
poop. ok thanks
just trying to break up my code a bit... im using an array field and want to move those fields to a seperate component... but how do i get the type of the field?
provincial-silverOP•8mo ago
i know screenshots suck.... but heres one

eastern-cyan•8mo ago
We don't have docs yet but this is the answer:
https://github.com/TanStack/form/blob/reusable-app-form-hook/examples/react/simple/src/app-form.tsx
GitHub
form/examples/react/simple/src/app-form.tsx at reusable-app-form-ho...
🤖 Headless, performant, and type-safe form state management for TS/JS, React, Vue, Angular, Solid, and Lit. - TanStack/form