hydrogen
hydrogen copied to clipboard
Expose inner form ref in <Form>
Description
I have some forms that I need to auto submit (i.e. onChange={() => formRef.current.submit()}), but can't do it when using the <Form> component (which offers a nicer UX than regular <form>).
Before submitting the PR, please make sure you do the following:
- [x] Read the Contributing Guidelines
- [x] Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g.
fixes #123) - [ ] Update docs in this repository according to your change
- [x] Run
yarn changeset addif this PR cause a version bump based on Keep a Changelog and adheres to Semantic Versioning