From bf4966f729dee8c8c7a1122b6fc47384a0e24446 Mon Sep 17 00:00:00 2001 From: Felix Kling Date: Tue, 8 Apr 2014 15:43:24 -0700 Subject: [PATCH] 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. --- docs/05-reusable-components.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/05-reusable-components.md b/docs/05-reusable-components.md index 126f58e1..5dd0e930 100644 --- a/docs/05-reusable-components.md +++ b/docs/05-reusable-components.md @@ -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.