Add a contact form to a SolidJS app
Build a reactive, signal-driven contact form in SolidJS that POSTs to FormLoom.
- 1
Create signals for form state
Use `createSignal` for each field and a `loading` / `success` signal.
- 2
POST on submit
In the submit handler, fetch your FormLoom endpoint with the signal values.
- 3
Show conditional UI
Use SolidJS's `<Show>` to display the form or a success message based on the signal.
FAQ
Yes — SolidStart's server functions can POST to FormLoom on the server and return the result to the client.