@samitouri / QOS-React-2 / commits / af79caf1aa

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.

Felix Kling committed Apr 8, 2014 at 15:43 UTC af79caf1aa1cfa22f03fb4be328df660ca7ff6d5
1 file changed +1 -1
docs/docs/05-reusable-components.md
+1 -1
@@ -61,7 +61,7 @@ React.createClass({
61 // shown if the prop isn't provided.
62 requiredFunc: React.PropTypes.func.isRequired,
63
64 - // An object of any kind
64 + // A value of any data type
65 requiredAny: React.PropTypes.any.isRequired,
66
67 // You can also specify a custom validator.