import React from 'react'; import {Field, reduxForm} from '../../index'; const validationIsRequired = (value) => !value ? 'Field required.' : undefined; const validationMinLength = (value) => value && (value.length < 2) ? 'The minimum length of the value must be 2.' : undefined; const Step1Component = (props) => { const {handleSubmit} = props; return (
); }; const Step1 = reduxForm({ form: 'step1', wizard: 'wizardExample', destroyOnUnmount: false, initialValues: { firstName: 'Timofey', lastName: 'Goncharov', }, })(Step1Component); export default Step1;