Skip to content

Instantly share code, notes, and snippets.

@dawehner
Created January 17, 2017 21:45
Show Gist options
  • Select an option

  • Save dawehner/0bd253e8e21180e5dd262952fe075484 to your computer and use it in GitHub Desktop.

Select an option

Save dawehner/0bd253e8e21180e5dd262952fe075484 to your computer and use it in GitHub Desktop.
const button = this.state.valid ? (
<Button raised colored>Submit</Button>
) : (
<Button raised colored disabled>Submit</Button>
);
return (
<form onSubmit={this.handleSubmit}>
{ apiKeyField }
{ button }
</form>
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment