redux-form#FormSection JavaScript Examples
The following examples show how to use
redux-form#FormSection.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: FormValidationYup.js From HexactaLabs-NetCore_React-Initial with Apache License 2.0 | 6 votes |
AsyncValidationForm = ({ handleSubmit, pristine, reset, submitting }) => (
<form onSubmit={handleSubmit}>
<Field label="name" name="firstName" component={renderField} type="text" />
<Field name="lastName" component={renderField} type="text" />
<Field name="email" component={renderField} type="text" />
<FormSection name="address">
<Field label="calle" name="street" component={renderField} type="text" />
<Field name="city" component={renderField} type="text" />
<Field name="state" component={renderField} type="text" />
<Field name="zip" component={renderField} type="text" />
</FormSection>
<Field
name="prueba"
options={options}
component={selectable}
type="select"
/>
<div>
<button type="submit" disabled={submitting}>
Submit
</button>
<button type="button" disabled={pristine || submitting} onClick={reset}>
Clear Values
</button>
</div>
</form>
)