← All examplesFlows

React Hook Form validation

Run the async flow only after React Hook Form accepts the values.

This integration recipe is not installed in the docs app. Copy the pattern into a project with the named integration dependency.
CodeFocused snippet
const submit = form.handleSubmit(async (values) => {
  const result = await flow.run('save', values)
  if (result.status === 'success') form.reset()
})

Read the related guide →