From d62a775b78085e38805d34f27295798bcf54987c Mon Sep 17 00:00:00 2001 From: G Roques Date: Tue, 9 Feb 2021 14:07:15 -0600 Subject: [PATCH] [readme] Clarify usage of `elementType` Closes #334. --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ec6fabe..c560590 100644 --- a/README.md +++ b/README.md @@ -82,7 +82,9 @@ MyComponent.propTypes = { // A React element (ie. ). optionalElement: PropTypes.element, - // A React element type (ie. MyComponent). + // A React element type (eg. MyComponent). + // a function, string, or "element-like" object (eg. React.Fragment, Suspense, etc.) + // see https://github.com/facebook/react/blob/master/packages/shared/isValidElementType.js optionalElementType: PropTypes.elementType, // You can also declare that a prop is an instance of a class. This uses