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 (