From 8b9c3e01ccdf8fb59c1a261abd2187bf7966cdbd Mon Sep 17 00:00:00 2001 From: Beni Cherniavsky-Paskin Date: Mon, 24 Aug 2020 12:09:40 +0300 Subject: [PATCH] README: clarify what "optional" means Based on all the "should be implicitly optional and not warn without values" tests. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ec6fabe..6106780 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ class MyComponent extends React.Component { MyComponent.propTypes = { // You can declare that a prop is a specific JS primitive. By default, these - // are all optional. + // are all optional - `undefined` and `null` are allowed. optionalArray: PropTypes.array, optionalBool: PropTypes.bool, optionalFunc: PropTypes.func,