From 2e09f79d4d76ae49cf0536c61a1bbce5b1b0f8cd Mon Sep 17 00:00:00 2001 From: Brikou CARRE Date: Fri, 1 Sep 2017 20:57:13 +0200 Subject: [PATCH] Mark href propType as required (#2882) --- lib/link.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/link.js b/lib/link.js index c7da8fa6..6af31e54 100644 --- a/lib/link.js +++ b/lib/link.js @@ -15,7 +15,7 @@ export default class Link extends Component { } static propTypes = exact({ - href: PropTypes.oneOfType([PropTypes.string, PropTypes.object]), + href: PropTypes.oneOfType([PropTypes.string, PropTypes.object]).isRequired, as: PropTypes.oneOfType([PropTypes.string, PropTypes.object]), prefetch: PropTypes.bool, replace: PropTypes.bool,