title: Loop of refs for input default value
body: <p>I wan't to add a default value to dynamically added inputs. So i want to render refs by loop. I tried something like this</p>
  
  <pre><code>this.state.foods.forEach(el=&gt; this[el.id] =  React.createRef() )
  </code></pre>
  
  <p>but it doesn't work. Any idea to render refs dynamically? I run this loop inside of a constructor.</p>