import React from 'react'; import ReactDOM from 'react-dom'; import { Form } from 'formsy-react'; import MyInput from './../components/Input'; import MySelect from './../components/Select'; import MyRadioGroup from './../components/RadioGroup'; import MyMultiCheckboxSet from './../components/MultiCheckboxSet'; const validationErrors = { 'isEmail': 'The field must contain a valid email address', 'isNumeric': 'The field must contain only numbers', 'isAlphanumeric': 'The field must only contain alpha-numeric characters', 'equals': 'The field must be equal to {0}', 'minLength': 'The field must be at least {0} characters in length', 'maxLength': 'The field must not exceed {0} characters in length' }; const Fields = props => { function onRemove(pos) { return event => { event.preventDefault(); props.onRemove(pos); }; } const foo = 'required'; return (