import * as $ from "jquery"; import * as React from "react"; import { UpLabel, UpBox, UpGrid, UpCol, UpRow } from "@up-group/react-controls"; export interface UpFormGroupProps { hasError?: boolean; title: string; description: string; isRequired: boolean; } export default class UpFormGroup extends React.Component { constructor(p, c) { super(p, c); } render() { return ( {this.props.title && {this.props.description != null ? ( ) : null} {this.props.isRequired ? " *" : ""} } {this.props.children} ); } onerror = () => { console.log("error change"); }; }