From 99adf5da96060f11cc3bac9717e47c8d633f8653 Mon Sep 17 00:00:00 2001 From: Fernando Alex Helwanger Date: Thu, 14 Jul 2016 06:43:47 -0300 Subject: [PATCH] Add mixins property to context example (#7277) --- _posts/2016-07-13-mixins-considered-harmful.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/_posts/2016-07-13-mixins-considered-harmful.md b/_posts/2016-07-13-mixins-considered-harmful.md index b0de43b5..6d72758c 100644 --- a/_posts/2016-07-13-mixins-considered-harmful.md +++ b/_posts/2016-07-13-mixins-considered-harmful.md @@ -489,6 +489,8 @@ var RouterMixin = { }; var Link = React.createClass({ + mixins: [RouterMixin], + handleClick: function(e) { e.stopPropagation();