Form

Within a Hydrogen app, React Server Components are used to fetch data and API routes are used to mutate data. The Form component provides a declarative way to send data to API routes and re-render server components. The Form component mimics the functionality of a native <form> element, but it provides an enhanced user experience with client-side JavaScript.