From cfe4d1335ec7ad27d47787f4d37e7d2d963d7ed3 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. --- _js/examples/todo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_js/examples/todo.js b/_js/examples/todo.js index de28d9cad..2f80ed48a 100644 --- a/_js/examples/todo.js +++ b/_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 ; }