Skip to content

Instantly share code, notes, and snippets.

@oguzgelal
Last active June 13, 2018 08:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oguzgelal/b8094c33aefc0932f54eadc3c7a8ac01 to your computer and use it in GitHub Desktop.
Save oguzgelal/b8094c33aefc0932f54eadc3c7a8ac01 to your computer and use it in GitHub Desktop.
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