Update 09.1-animation.md
Chris Sciolla committed
Aug 19, 2014 at 20:59 UTC
99ed64387d14c06c3882cbe0ec425a80d3369b6b
1 file changed
+2
-2
docs/docs/09.1-animation.md
+2
-2
@@ -88,7 +88,7 @@ You'll notice that when you try to remove an item `ReactCSSTransitionGroup` keep
88
In order for it to apply transitions to its children, the `ReactCSSTransitionGroup` must already be mounted in the DOM. The example below would not work, because the `ReactCSSTransitionGroup` is being mounted along with the new item, instead of the new item being mounted within it. Compare this to the [Getting Started](/docs/docs/09.1-animation.md#getting-started) section above to see the difference.
89
90
```javascript{12-14}
91
-render: function() {
91
+ render: function() {
92
var items = this.state.items.map(function(item, i) {
93
return (
94
<div key={item} onClick={this.handleRemove.bind(this, i)}>
@@ -97,7 +97,7 @@ render: function() {
97
</ReactCSSTransitionGroup>
98
</div>
99
);
100
- }.bind(this));
100
+ }, this);
101
return (
102
<div>
103
<button onClick={this.handleAdd}>Add Item</button>