We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 065950c commit f4081aeCopy full SHA for f4081ae
packages/react-router-dom/modules/Link.js
@@ -59,6 +59,8 @@ class Link extends React.Component {
59
60
if (__DEV__) {
61
const toType = PropTypes.oneOfType([PropTypes.string, PropTypes.object]);
62
+ // polyfill for Node
63
+ const Element = typeof Element === "undefined" ? function() {} : Element;
64
const innerRefType = PropTypes.oneOfType([
65
PropTypes.string,
66
PropTypes.func,
0 commit comments