From 3524427e54e519e71415f1521af339a97d178f5d Mon Sep 17 00:00:00 2001 From: Alex Lopatin Date: Wed, 25 Mar 2015 17:17:42 -0700 Subject: [PATCH] Docs: Clarify that React.PropTypes.node accepts fragments As of #3293 `ReactFragment` counts as a node, but this isn't made clear in the docs. --- 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 b4159ac9..cd1fbfa6 100644 --- a/docs/05-reusable-components.md +++ b/docs/05-reusable-components.md @@ -26,7 +26,7 @@ React.createClass({ optionalString: React.PropTypes.string, // Anything that can be rendered: numbers, strings, elements or an array - // containing these types. + // (or fragment) containing these types. optionalNode: React.PropTypes.node, // A React element.