Nested Forms code example
Example: Nested Forms
import { Form, Field } from '@leveluptuts/fresh'
const defaultValues = {
name: 'Brooklyn Boo',
email: '[email protected]',
}
const CoolApp = () => {
return (
<Form formId="defaults" onSubmit={onSubmit} defaultValues={defaultValues}>
<Field>Name</Field>
<Form
formId="nestedForm"
onSubmit={onSubmit}
defaultValues={defaultValues}
>
<Field>Name</Field>
</Form>
</Form>
)
}