From 5173ebc0d573293533008428323426b0fa2dd4a0 Mon Sep 17 00:00:00 2001 From: Victor Hom Date: Wed, 6 Jan 2016 10:42:24 -0500 Subject: [PATCH] teach controlled components concept I noticed that this file did not have "var self = this" in the Recipe component. Since, this file was to show the controlled components concept, it would make sense that the delete functionality still work like it does in 006.1-flux-form.html --- 006.2-flux-form-broken.html | 1 + 1 file changed, 1 insertion(+) diff --git a/006.2-flux-form-broken.html b/006.2-flux-form-broken.html index fe08e4e..3182ea6 100644 --- a/006.2-flux-form-broken.html +++ b/006.2-flux-form-broken.html @@ -111,6 +111,7 @@ RecipeActions.deleteRecipe(index); }, render: function() { + var self = this; var recipeNodes = this.props.recipes.map(function(recipe, index){ return
  • Recipe {recipe}
  • })