access form within child components
I am currently trying to migrate from
react-hook-form to tanstack form, but i am a little confused about how I should be accessing the form object in child components?I have the following form, which is used in a popup multi step form.
I have an array of steps, which get moved through depending on the users
currentStep stateIn react hook form, I used to use
useFormContext, but this doesnt seem to be the approach that tanstack uses? If I am to pass the form object as a prop, im not sure how i am supposed to correctly type this?