To-do list using React Would this todo list benefit from breaking it down into more components?  What would be the advantages?  Am I breaking any best practices from what is seen here?

var TodoList = React.createClass({
    getInitialState: function(){
        return {
            todos:data,
            text:""
        };
    },
    handleChange: function(event){
        this.setState({text:event.target.value });
    },
    submitHandler: function(event){
        event.preventDefault();
        var todo = this.state.text;
        data.push({task:todo});
        this.setState({text:""});
        $('#input').val("")
    },
    render: function(){
        var rows = [];
        this.state.todos.forEach( function(todo, index){
            rows.push(&lt;li key={index}&gt;{todo.task}&lt;/li&gt;)
        }); 

        return(
            &lt;div className="well clearfix"&gt;
                &lt;form onSubmit={this.submitHandler}&gt;
                    &lt;ul&gt;
                        {rows}
                    &lt;/ul&gt;
                    &lt;br /&gt;
                    &lt;input id="input" key={this.state.timestamp} onChange={this.handleChange} type="text" /&gt;
                    &lt;br /&gt;
                    &lt;br /&gt;
                    &lt;button type="submit" className="btn btn-primary" disabled={this.state.text.length === 0}&gt;Submit&lt;/button&gt;
                &lt;/form&gt;
            &lt;/div&gt;
        )
    }
});

var data = [
    {task:"eat cheese"},
    {task:"go to gym"},
    {task:"do some yoga"},
    {task:"go to sleep"}
];

ReactDOM.render(&lt;TodoList/&gt;, document.getElementById('app') );
I think data should just be contained in the component state, because it belongs to the TodoList:

getInitialState: function() {
    return {
        todos: [{task: "eat cheese"}, ...],
        text: ""
    };
},


which would simplify submitHandler into

submitHandler: function(event) {
    event.preventDefault();
    var todo = this.state.text;
    this.setState({
        text: "",
        todos: this.state.todos.concat([todo])
    });
},


The jQuery $('#input').val("") call is unnecessary because React should be handling that state for us. Just make the value of the &lt;input&gt; reflect state.text and all will flow:

&lt;input id="input" key={this.state.timestamp} onChange={this.handleChange}
       value={this.state.text} type="text" /&gt;


In render(), the declaration of rows and the forEach can be combined into a map:

var rows = this.state.todos.map(function(todo, index) {
    return (&lt;li key={index}&gt;{todo.task}&lt;/li&gt;);
});


--

In general your code is very clear. Right now your app is simple and I don't think there's much need to break it down into smaller parts.

However, as your app inevitably grows and you add more features, separating, say, TodoItem and TodoList into distinct components would be useful. When a function gets long and starts doing five or six conceptually distinct things, you separate it into smaller functions and compose them together. Same thing when classes start representing many things at once.

So some advantages of breaking things down into smaller components are modularity and composability. Your app becomes easier to test and think about.