title: how to add input data to list in react js?
body: <p>I am trying to make a Todo application but i am stuck,I am not able to proceed further. Please help</p>
  
  <pre><code>var Todo= React.createClass({
      save() {
        this.refs.newText.value
      },
  
      render(){
          return(
              &lt;div className="list"&gt;
                &lt;h1&gt; TO-DO List&lt;/h1&gt;
                &lt;input type="text" ref="newtext" defaultValue={this.props.children} /&gt;
                &lt;button onclick={this.save} className="btn btn-primary glyphicon glyphicon-floppy-saved"&gt;
                &lt;/button&gt;
                &lt;ul&gt;
                  &lt;li&gt;{this.target.value}&lt;/li&gt;
                &lt;/ul&gt;
              &lt;/div&gt;
          )
      },
  
  
  });
  </code></pre>