title: How to set this input value when 0 is falsey ReactJS
body: <p>ReactJS does not like null for a value in <code>&lt;input&gt;</code>. </p>
  
  <blockquote>
    <p>Warning: <code>value</code> prop on <code>input</code> should not be null. Consider using an
    empty string to clear the component or <code>undefined</code> for uncontrolled
    components.</p>
  </blockquote>
  
  <p>Great. My database often returns null because nothing has been set yet.</p>
  
  <p>I am dynamically rendering input fields in a ReactJS app.</p>
  
  <pre><code>value={this.state[row_array[0]] || ''} 
  </code></pre>
  
  <p>The value for <code>this.state[row_array[0]]</code> will sometimes be 0. I want to put 0 in the text field but this evaluates to false ... thus... the empty string <code>''</code> is put in the text field.</p>
  
  <p>The problem is <code>this.state[row_array[0]]</code> could be anything... 0 is the big problem.</p>
  
  <p>This has some info but nothing helpful for me <a href="https://github.com/facebook/react/issues/11417" rel="nofollow noreferrer">https://github.com/facebook/react/issues/11417</a></p>
  
  <p>Any ideas about how I can set that <code>value=0</code>?</p>