From 3516f33ffd8d51be904032b2e4ca26c28b09ff66 Mon Sep 17 00:00:00 2001 From: PNikray Date: Mon, 2 Mar 2015 19:49:42 +0100 Subject: [PATCH] Modified the todo example. Instead of only using the index to supress the warning it now uses the text + index to also ensure object iteration order. --- docs/_js/examples/todo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_js/examples/todo.js b/docs/_js/examples/todo.js index de28d9cad5..2f80ed48a5 100644 --- a/docs/_js/examples/todo.js +++ b/docs/_js/examples/todo.js @@ -2,7 +2,7 @@ var TODO_COMPONENT = ` var TodoList = React.createClass({ render: function() { var createItem = function(itemText, index) { - return
  • {itemText}
  • ; + return
  • {itemText}
  • ; }; return ; }