From 2226476039046e37bb73186b14e90fe79c98fab2 Mon Sep 17 00:00:00 2001 From: Brian Rue Date: Fri, 25 Oct 2013 18:03:31 -0700 Subject: [PATCH] ReactTransitionGroup example: fix typo and logic bug in handleRemove --- docs/09-addons.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/09-addons.md b/docs/09-addons.md index bc1c6fc4..30bacadc 100644 --- a/docs/09-addons.md +++ b/docs/09-addons.md @@ -33,14 +33,14 @@ var TodoList = React.createClass({ }, handleRemove: function(i) { var newItems = this.state.items; - newItems.splice(i, 0) + newItems.splice(i, 1) this.setState({items: newItems}); }, render: function() { var items = this.state.items.map(function(item, i) { return (
- {item}} + {item}
); }.bind(this));