We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccd4885 commit 00d60a1Copy full SHA for 00d60a1
modules/components/Redirect.js
@@ -11,11 +11,15 @@ class Redirect extends Route {}
11
// once we can use ES7 property initializers.
12
// https://github.com/babel/babel/issues/619
13
14
+
15
Redirect.propTypes = {
16
path: PropTypes.string,
17
from: PropTypes.string, // Alias for path.
18
to: PropTypes.string,
19
handler: PropTypes.falsy
20
};
21
22
+// Redirects should not have a default handler
23
+Redirect.defaultProps = {}
24
25
module.exports = Redirect;
0 commit comments