title: How to get values from dynamically created inputs with ReactJS
body: <blockquote>
    <p>I have inputs in my page added based on a period of time for example
    if the period is a week I would have 7 text inputs if the period is
    two weeks I would have 15 text inputs I already done that it is not
    the problem now i want to get the values entered in the created text
    fields knowing that in my render there is only one input that is
    duplicated a number of times according to the period given </p>
    
    <p>this  is how i render my inputs</p>
  </blockquote>
  
  <pre><code>render() {
      const days = [];
      let day = this.props.StartOfWeek;
      while (day &lt;= this.props.EndOfWeek) {
        days.push(moment(day).format('ddd, DD-MM'));
        day = day.clone().add(1, 'd');
      }
      const daysCode = days.map((displayedDay) =&gt; {
      return (
          &lt;td className={this.isWeek(displayedDay)}&gt;
            &lt;tr&gt;{displayedDay}&lt;/tr&gt;
            &lt;tr&gt;  &lt;input type="text" key={displayedDay.id} size="3" /&gt;&lt;/tr&gt;
          &lt;/td&gt;);
      });
  </code></pre>
  
  <p>any ideas on how can i proceed ? </p>