diff --git a/packages/react-router-dom/modules/Link.js b/packages/react-router-dom/modules/Link.js index 67aea8dc40..47b6802fc5 100644 --- a/packages/react-router-dom/modules/Link.js +++ b/packages/react-router-dom/modules/Link.js @@ -59,12 +59,10 @@ class Link extends React.Component { if (__DEV__) { const toType = PropTypes.oneOfType([PropTypes.string, PropTypes.object]); - // polyfill for Node - const Element = typeof Element === "undefined" ? function() {} : Element; const innerRefType = PropTypes.oneOfType([ PropTypes.string, PropTypes.func, - PropTypes.shape({ current: PropTypes.instanceOf(Element) }) + PropTypes.shape({ current: PropTypes.any }) ]); Link.propTypes = {