Form context
Add context support to use-form with createFormContext
Docs
PackageIcon
Usage
The createFormContext function creates a context provider and hook to get the form object from context:
Store context in separate file
Usually it's a good idea to store the form context in a separate file to avoid dependency cycles:
Then you can import context variables from anywhere: