title: React: setting the disabled attribute based on a state
body: <p>I'd like to set the disabled attribute on a Button based on component's state, something like this:</p>
  
  <pre><code>render() {
    return (
      &lt;button type="button" {this.state.submitting ? 'disabled' : ''} 
        onClick={ this.handleSubmit }&gt;Submit&lt;/button&gt;
      );
  }
  </code></pre>
  
  <p>At the moment I get an Unexpected token error on the opening {, what am I missing?</p>