<FancyBorder color="blue">
<h1 className="Dialog-title">
<p className="Dialog-message">
{props.children} </FancyBorder>
class SignUpDialog extends React.Component {
this.handleChange = this.handleChange.bind(this);
this.handleSignUp = this.handleSignUp.bind(this);
this.state = {login: ''};
<Dialog title="Mars Exploration Program"
message="How should we refer to you?">
<input value={this.state.login} onChange={this.handleChange} /> <button onClick={this.handleSignUp}> Sign Me Up! </button> </Dialog>
this.setState({login: e.target.value});
alert(`Welcome aboard, ${this.state.login}!`);