Created
September 4, 2018 02:11
-
-
Save suzdalnitski/33f3d237031f91b88a55f1873947750f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
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} | |
onBlur={this.onFirstNameBlur} | |
error={firstNameError} /> | |
<LastNameField onChange={this.onLastNameChange} | |
onBlur={this.onLastNameBlur} | |
error={lastNameError} /> | |
<Greetings firstName={firstName} lastName={lastName} /> | |
</div> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment