Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import FirstNameField from './FirstNameField';
import LastNameField from './LastNameField';
class SimpleForm extends React.Component {
render() {
const { firstNameError, firstName, lastName, lastNameError } = this.state;
return (
<div style={style.form}>
<FirstNameField onChange={this.onFirstNameChange}
error={firstNameError} />
<LastNameField onChange={this.onLastNameChange}
error={lastNameError} />
<Greetings firstName={firstName} lastName={lastName} />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment