title: React JSX - dynamic html attribute
body: <p>In JSX, we can indicate attribute value dynamically like:</p>
  
  <pre><code>&lt;div className={this.state.className}&gt;This is a div.&lt;/div&gt;
  </code></pre>
  
  <p>Is it possible to indicate attribute (including attribute name and attribute value) dynamically? Like:</p>
  
  <pre><code>const value = emptyValue ? "" : "value='test'";
  &lt;input {value} /&gt;
  </code></pre>
  
  <p>That means, once <code>emptyValue</code> is true, "input" tag should not include "value" attribute (value="" is different from no value attribute, as one is show empty in input field, another is show existing text in input field).</p>