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
2014-04-08 15:43:24 -07:00
parent 009be62906
commit af79caf1aa
+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.