Browse Source

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.
main
Alex Lopatin 10 years ago
parent
commit
3524427e54
  1. 2
      docs/05-reusable-components.md

2
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.

Loading…
Cancel
Save