Fix animation example code

key should never be index into an array or there are bugs. Especially in
transitions.

Fixes #853
This commit is contained in:
Paul O’Shannessy
2014-02-02 03:49:58 +01:00
committed by Vjeux
parent 6e4ddfd239
commit dd66223d67
+1 -1
View File
@@ -35,7 +35,7 @@ var TodoList = React.createClass({
render: function() {
var items = this.state.items.map(function(item, i) {
return (
<div key={i} onClick={this.handleRemove.bind(this, i)}>
<div key={item} onClick={this.handleRemove.bind(this, i)}>
{item}
</div>
);