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.
2 parents 4fdceb4 + 808fdc8 commit 1a77daeCopy full SHA for 1a77dae
docs/rules/prop-types.md
@@ -77,7 +77,8 @@ As it aptly noticed in
77
> Most components don't need `this.props.children`, so that makes it extra important
78
to document `children` in the propTypes.
79
80
-> If `children` is difficult to figure out which type to use,
81
-one can always use `React.PropTypes.any`
+Generally, you should use `React.PropTypes.node` for `children`. It accepts
+anything that can be rendered: numbers, strings, elements or an array containing
82
+these types.
83
84
Since 2.0.0 children is no longer ignored for props validation.
0 commit comments