From 350ec368f5e99073aadf5056a1e2ddb9aabd3224 Mon Sep 17 00:00:00 2001 From: Adel Grimm Date: Thu, 28 Jul 2016 12:03:05 +0200 Subject: [PATCH] use this.props.customAction instead of this.customAction --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index bfb3f98..ed847b3 100644 --- a/index.js +++ b/index.js @@ -286,7 +286,7 @@ class Router extends React.Component { }; const customAction = (opts) => { - this.customAction(opts); + this.props.customAction(opts); }; const Content = route.component;