import React from "react" export default class extends React.Component { isValidated() { return typeof this.props.validation !== "undefined" } getClassName() { let className = "form-group" if (this.isValidated()) { className += " has-feedback" if (this.props.validation === null) { className += " has-success" } else { className += " has-error" } } return className } getFeedback() { if (this.props.validation) { return (
{error}
})}{this.props.helpText}
} else { return null } } render() { return (