Last active
June 13, 2018 08:29
-
-
Save oguzgelal/b8094c33aefc0932f54eadc3c7a8ac01 to your computer and use it in GitHub Desktop.
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
submitted() { | |
broadcast('login_submitted', { | |
email: this.state.email, | |
password: this.state.password | |
}) | |
} | |
<form onSubmit={this.submitted}> | |
... | |
{ this.props.loading.login && <div>Loading...</div> } | |
{ !this.props.loading.login && <Button text="Login" /> } | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment