Skip to content

Commit 2ec8acd

Browse files
Merge branch 'master' of https://github.com/reactjs/reactjs.org into sync-a0911655
2 parents 92923e9 + a091165 commit 2ec8acd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

content/docs/typechecking-with-proptypes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ MyComponent.propTypes = {
5757
// A React element.
5858
optionalElement: PropTypes.element,
5959

60+
// A React element type (ie. MyComponent).
61+
optionalElementType: PropTypes.elementType,
62+
6063
// You can also declare that a prop is an instance of a class. This uses
6164
// JS's instanceof operator.
6265
optionalMessage: PropTypes.instanceOf(Message),

0 commit comments

Comments
 (0)