Merge pull request #2021 from adammark/patch-1

Close <section> tag in sample markup
This commit is contained in:
Paul O’Shannessy
2014-08-11 10:07:36 -07:00
+3 -2
View File
@@ -325,10 +325,11 @@ for (var key in allTodos) {
return (
<section id="main">
<ul id="todo-list">{todos}</ul>
<ul id="todo-list">{todos}</ul>
</section>
);
```
Now each TodoItem can display it's own text, and perform actions utilizing it's own ID. Explaining all the different actions that a TodoItem can invoke in the TodoMVC example goes beyond the scope of this article, but let's just take a look at the action that deletes one of the to-do items. Here is an abbreviated version of the TodoItem:
Now each TodoItem can display its own text, and perform actions utilizing its own ID. Explaining all the different actions that a TodoItem can invoke in the TodoMVC example goes beyond the scope of this article, but let's just take a look at the action that deletes one of the to-do items. Here is an abbreviated version of the TodoItem:
```javascript
/** @jsx React.DOM */