@spike-forms/react package provides React hooks and components for easy form integration.
Installation
Quick Start
useForm Hook
Options
State Object
| Property | Type | Description |
|---|---|---|
submitting | boolean | Form is being submitted |
succeeded | boolean | Submission successful |
errors | array | Validation/submission errors |
Methods
| Method | Description |
|---|---|
handleSubmit | Form submit handler |
reset | Reset form state |