Last active
April 9, 2017 13:52
-
-
Save arvinio/9c65807087490b4d36fb5f46bcad8d17 to your computer and use it in GitHub Desktop.
Hot Reloading does not update state
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
export default class NameForm extends Component { | |
constructor(){ | |
super() | |
this.state = {initalName: "Arvin"} | |
} | |
render() { | |
return ( | |
<View> | |
<TextInput | |
placeholder="Your Name" | |
value={this.state.initialName} //Exception will be thrown if initialName is null | |
/> | |
</View> | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment