useFormContext()

useFormContext

This hook works like useForm(), with the difference that it doesn't create a new form, but it fetches the actions and state of the first parent form. useFormContext() should be used only at a form children level.

Import

import { useFormContext } from "@formiz/core";

For full API detail, refer to useForm() hook documentation.