renderField(field) {
        // es6 destructuring to pull off properties on nested objects
        const { meta: { touched, error } } = field;
        const className = `form-group ${touched && error ? 'has-danger' : ''}`;

        return (
            <div className={className}>
                <label>{field.label}</label>
                <input
                    className="form-control"
                    type="text"
                    {...field.input}
                />
                <div className="text-help">
                    {touched ? error : ''}
                </div>
            </div>
        );
    }
// helper that needs to return JSX for component attribute
helper that needs to return JSX for component attribute
helper that needs to return JSX for component attribute
renderField(field) {
        const { meta: { touched, error } } = field;
        const className = `form-group ${touched && error ? 'has-danger' : ''}`;
        return (
            <div className={className}>
                <label>{field.label}</label>
                <input
                    className="form-control"
                    type="text"
                    {...field.input}
                />
                <div className="text-help">
                    {touched ? error : ''}
                </div>
            </div>
        );
    }
renderField ( field ) { const { meta : { touched , error } } = field ; const className = ` ${ touched && error ? 'has-danger' : '' } ` ; return ( < div className = { className } > < label > { field . label } < / label > < input className = "form-control" type = "text" { ... field . input } / > < div className = "text-help" > { touched ? error : '' } < / div > < / div > ) ; }
helper that needs to return JSX for component attribute
helper that needs to return JSX for component attribute
// es6 destructuring to pull off properties on nested objects