/** * @jsx React.DOM */ var TODO_COMPONENT = "\ /** @jsx React.DOM */\n\ var TodoList = React.createClass({\n\ render: function() {\n\ var createItem = function(itemText) {\n\ return
  • {itemText}
  • ;\n\ };\n\ return ;\n\ }\n\ });\n\ var TodoApp = React.createClass({\n\ getInitialState: function() {\n\ return {items: [], text: ''};\n\ },\n\ onChange: function(e) {\n\ this.setState({text: e.target.value});\n\ },\n\ handleSubmit: function(e) {\n\ e.preventDefault();\n\ var nextItems = this.state.items.concat([this.state.text]);\n\ var nextText = '';\n\ this.setState({items: nextItems, text: nextText});\n\ },\n\ render: function() {\n\ return (\n\
    \n\

    TODO

    \n\ \n\
    \n\ \n\ \n\
    \n\
    \n\ );\n\ }\n\ });\n\ React.renderComponent(, mountNode);\ "; React.renderComponent( , document.getElementById('todoExample') );