Last active
April 5, 2018 05:57
-
-
Save cristianoliveira/97f67a2004d9fa85a0f9fa4a39dc9a94 to your computer and use it in GitHub Desktop.
country address form
This file contains 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
// CountryAddressForm.js | |
// Common most used address format | |
// ... | |
render() { | |
return ( | |
<form action="#" | |
onSubmit={this.handleSubmit.bind(this)} | |
onChange={this.handleChange.bind(this)}> | |
<CountrySelector name="country" countries={countries} /> | |
<AddressLineInput name="address_line" value={this.state.address_line} /> | |
<AddressLineInput name="address_line2" value={this.state.address_line2} optional /> | |
<PostCodeInput name="post_code" value={this.state.post_code} /> | |
<CityInput name="city" value={this.state.city} /> | |
<button>Submit</button> | |
</form> | |
) | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment