title: React find DOM node by refs set to variable?
body: <p>I am dynamically creating multiple text inputs (with dynamically created refs) along side the text that I want updated with the input.</p>
  
  <p>I am trying to get the value of the input by setting the ref to a variable and finding the DOM node with React.findDOMNode(this.refs.Variable).value</p>
  
  <p>I am getting a "Cannot read property 'value' of null" error.</p>
  
  <p>How can I achieve this? </p>
  
  <p>This is what the function looks like:</p>
  
  <pre><code>resetUnit: function(e){
    var refID = e.target.id;
    var ID = refID.split("-")[0];
    var Value = React.findDOMNode(this.refs.refID).value;
    NodesCollection.update({_id: ID},{$set: { materialUnit : Value}});
    this.setState({
      edit: ''
    });
  },
  </code></pre>