From c93e5e78f92315dc14d289ef06edf9decec30f59 Mon Sep 17 00:00:00 2001 From: Jonathan Grimes Date: Thu, 20 Oct 2016 13:42:13 -0500 Subject: [PATCH] Update Router "component" propType spec. Passing a React Component (which doesn't have a proptype anymore :|) generates a PropType error in the console. This will let it pass. (this mostly matches the handler propType spec, with the addition of string.) --- lib/Router.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Router.js b/lib/Router.js index e0f017f..a37ec7f 100644 --- a/lib/Router.js +++ b/lib/Router.js @@ -28,7 +28,8 @@ function createRouter(name, component) { propTypes: { component: React.PropTypes.oneOfType([ React.PropTypes.string, - React.PropTypes.element + React.PropTypes.element, + React.PropTypes.func ]) },