import * as React from 'react'; interface MessageProps { error: string; } export class Message extends React.Component { constructor(props: MessageProps) { super(props); } static defaultProps = { error: '' }; render(): JSX.Element { return ( {this.props.error} ); } }