Update 05-reusable-components.md

`any` also seems to accept primitive values, not only objects. And since we already have `React.PropType.object`, the description was confusing.
This commit is contained in:
Felix Kling authored and Paul O’Shannessy committed 2014-05-08 11:47:24 -07:00
1 parent 6d2dd794ee
commit 1400085fe3
1 file changed
+1 -1
+1 -1
View File
@@ -61,7 +61,7 @@ React.createClass({
// shown if the prop isn't provided.
requiredFunc: React.PropTypes.func.isRequired,
// An object of any kind
// A value of any data type
requiredAny: React.PropTypes.any.isRequired,
// You can also specify a custom validator.