/* eslint-disable no-console */ import React from 'react'; import { Form, Field, WithFormProp } from '../src'; import { required, minLength, requiredIfHasField } from './validators'; const handleCommentFormSubmit = (values) => { console.log('submit', values); // return false; }; const handleCommentFormSuccess = reset => reset(); const handleCommentFormFail = e => console.log('fail', e); const ageOptions = [ { '18-': '18' }, { '18-50': '18-50' }, { '50+': '> 50' }, ]; const renderRange = (input, { error, isTouched, className }) => (
{isTouched && error && ( {error} )}
); const App = () => (

Register

Gender
parseInt(value, 10)} />
saving... Please review your form ( )} />
); export default App;