diff --git a/packages/react-router/modules/withRouter.js b/packages/react-router/modules/withRouter.js index 86b64233a6..073aeec40c 100644 --- a/packages/react-router/modules/withRouter.js +++ b/packages/react-router/modules/withRouter.js @@ -36,7 +36,11 @@ function withRouter(Component) { if (__DEV__) { C.propTypes = { - wrappedComponentRef: PropTypes.func + wrappedComponentRef: PropTypes.oneOfType([ + PropTypes.string, + PropTypes.func, + PropTypes.object + ]) }; }